Merge pull request #3229 from jrfnl/feature/ghactions-pin-action-runners

GH Actions: "pin" all action runners
This commit is contained in:
Marcus Bointon 2025-09-21 11:19:30 +01:00 committed by GitHub
commit 1714708220
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 24 additions and 18 deletions

View File

@ -12,3 +12,9 @@ updates:
open-pull-requests-limit: 5 open-pull-requests-limit: 5
commit-message: commit-message:
prefix: "GH Actions:" prefix: "GH Actions:"
groups:
action-runners:
applies-to: version-updates
update-types:
- "minor"
- "patch"

View File

@ -14,13 +14,13 @@ jobs:
if: github.repository == 'PHPMailer/PHPMailer' if: github.repository == 'PHPMailer/PHPMailer'
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v4 uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with: with:
fetch-depth: 1 fetch-depth: 1
- name: Build Docs - name: Build Docs
uses: ./.github/actions/build-docs uses: ./.github/actions/build-docs
- name: Publish Docs to gh-pages - name: Publish Docs to gh-pages
uses: JamesIves/github-pages-deploy-action@v4 uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
with: with:
branch: gh-pages branch: gh-pages
folder: docs folder: docs

View File

@ -28,12 +28,12 @@ jobs:
steps: steps:
- name: "Checkout code" - name: "Checkout code"
uses: actions/checkout@v4 uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with: with:
persist-credentials: false persist-credentials: false
- name: "Run analysis" - name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with: with:
results_file: results.sarif results_file: results.sarif
results_format: sarif results_format: sarif
@ -52,7 +52,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab. # format to the repository Actions tab.
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with: with:
name: SARIF file name: SARIF file
path: results.sarif path: results.sarif
@ -60,6 +60,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard. # Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning" - name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@v3 uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
with: with:
sarif_file: results.sarif sarif_file: results.sarif

View File

@ -17,10 +17,10 @@ jobs:
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Set up PHP - name: Set up PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
with: with:
php-version: 'latest' php-version: 'latest'
coverage: none coverage: none
@ -29,7 +29,7 @@ jobs:
# Install dependencies and handle caching in one go. # Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
- name: Install Composer dependencies - name: Install Composer dependencies
uses: "ramsey/composer-install@v3" uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
with: with:
# Bust the cache at least once a month - output format: YYYY-MM. # Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m") custom-cache-suffix: $(date -u "+%Y-%m")
@ -57,10 +57,10 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Install PHP - name: Install PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
with: with:
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
ini-values: error_reporting=-1, display_errors=On, display_startup_errors=On ini-values: error_reporting=-1, display_errors=On, display_startup_errors=On
@ -70,7 +70,7 @@ jobs:
# Install dependencies and handle caching in one go. # Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
- name: Install Composer dependencies - name: Install Composer dependencies
uses: "ramsey/composer-install@v3" uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
with: with:
# Bust the cache at least once a month - output format: YYYY-MM. # Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m") custom-cache-suffix: $(date -u "+%Y-%m")
@ -127,7 +127,7 @@ jobs:
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
# About the "extensions": # About the "extensions":
# #
@ -157,7 +157,7 @@ jobs:
fi fi
- name: Set up PHP - name: Set up PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@bf6b4fbd49ca58e4608c9c89fba0b8d90bd2a39f # 2.35.5
with: with:
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
coverage: ${{ matrix.coverage && 'xdebug' || 'none' }} coverage: ${{ matrix.coverage && 'xdebug' || 'none' }}
@ -168,7 +168,7 @@ jobs:
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
- name: Install PHP packages - normal - name: Install PHP packages - normal
if: ${{ matrix.php != '8.5' }} if: ${{ matrix.php != '8.5' }}
uses: "ramsey/composer-install@v3" uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
with: with:
composer-options: ${{ steps.set_extensions.outputs.COMPOSER_OPTIONS }} composer-options: ${{ steps.set_extensions.outputs.COMPOSER_OPTIONS }}
# Bust the cache at least once a month - output format: YYYY-MM. # Bust the cache at least once a month - output format: YYYY-MM.
@ -176,7 +176,7 @@ jobs:
- name: Install PHP packages - ignore-platform-reqs - name: Install PHP packages - ignore-platform-reqs
if: ${{ matrix.php == '8.5' }} if: ${{ matrix.php == '8.5' }}
uses: "ramsey/composer-install@v3" uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
with: with:
composer-options: --ignore-platform-reqs ${{ steps.set_extensions.outputs.COMPOSER_OPTIONS }} composer-options: --ignore-platform-reqs ${{ steps.set_extensions.outputs.COMPOSER_OPTIONS }}
# Bust the cache at least once a month - output format: YYYY-MM. # Bust the cache at least once a month - output format: YYYY-MM.
@ -185,7 +185,7 @@ jobs:
# Install postfix and automatically retry if the install failed, which happens reguarly. # Install postfix and automatically retry if the install failed, which happens reguarly.
# @link https://github.com/marketplace/actions/retry-step # @link https://github.com/marketplace/actions/retry-step
- name: Install postfix - name: Install postfix
uses: nick-invision/retry@v3 uses: nick-invision/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
with: with:
timeout_minutes: 2 timeout_minutes: 2
max_attempts: 3 max_attempts: 3
@ -214,7 +214,7 @@ jobs:
- name: Send coverage report to Codecov - name: Send coverage report to Codecov
if: ${{ success() && matrix.coverage == true }} if: ${{ success() && matrix.coverage == true }}
uses: codecov/codecov-action@v4 uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with: with: