Skip to content

Commit c8533ea

Browse files
Merge pull request #15 from jeffersongoncalves/fix/pin-actions-to-sha
fix: pin GitHub Actions to commit SHA
2 parents 4909de2 + a8fdfc6 commit c8533ea

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v7
14+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1515
with:
1616
ref: ${{ github.head_ref }}
1717

1818
- name: Fix PHP code style issues
19-
uses: aglipanci/laravel-pint-action@2.6
19+
uses: aglipanci/laravel-pint-action@36de00d5f5a8a4e12d443e01671daa12a18f4c79 # 2.6
2020

2121
- name: Commit changes
22-
uses: stefanzweifel/git-auto-commit-action@v7
22+
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7
2323
with:
2424
commit_message: Fix styling

.github/workflows/phpstan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
name: phpstan
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v7
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1515

1616
- name: Setup PHP
17-
uses: shivammathur/setup-php@v2
17+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
1818
with:
1919
php-version: '8.2'
2020
coverage: none
2121

2222
- name: Install composer dependencies
23-
uses: ramsey/composer-install@v4
23+
uses: ramsey/composer-install@26d8a556604053a9612623447203a691f406fbe6 # v4
2424

2525
- name: Run PHPStan
2626
run: ./vendor/bin/phpstan --error-format=github

.github/workflows/run-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v7
24+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2525

2626
- name: Setup PHP
27-
uses: shivammathur/setup-php@v2
27+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
2828
with:
2929
php-version: ${{ matrix.php }}
3030
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
@@ -60,10 +60,10 @@ jobs:
6060

6161
steps:
6262
- name: Checkout code
63-
uses: actions/checkout@v7
63+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
6464

6565
- name: Setup PHP
66-
uses: shivammathur/setup-php@v2
66+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
6767
with:
6868
php-version: ${{ matrix.php }}
6969
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
@@ -99,10 +99,10 @@ jobs:
9999

100100
steps:
101101
- name: Checkout code
102-
uses: actions/checkout@v7
102+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
103103

104104
- name: Setup PHP
105-
uses: shivammathur/setup-php@v2
105+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2
106106
with:
107107
php-version: ${{ matrix.php }}
108108
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo

.github/workflows/update-changelog.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v7
20+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2121
with:
2222
# Fetch entire history of repository to ensure release date can be
2323
# extracted from commit of the given tag.
@@ -32,7 +32,7 @@ jobs:
3232
echo "date=$(git log -1 --date=short --format=%ad '${{ github.event.release.tag_name }}')" >> $GITHUB_OUTPUT;
3333
3434
- name: Update Changelog
35-
uses: stefanzweifel/changelog-updater-action@v1
35+
uses: stefanzweifel/changelog-updater-action@a938690fad7edf25368f37e43a1ed1b34303eb36 # v1
3636
with:
3737
# Pass extracted release date, release notes and version to the Action.
3838
release-date: ${{ steps.release_date.outputs.date }}
@@ -63,7 +63,7 @@ jobs:
6363
run: "echo ${{ steps.changelog-updater.outputs.unreleased_compare_url }}"
6464

6565
- name: Commit updated CHANGELOG
66-
uses: stefanzweifel/git-auto-commit-action@v7
66+
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7
6767
with:
6868
# Push updated CHANGELOG to release target branch.
6969
branch: ${{ github.event.release.target_commitish }}

0 commit comments

Comments
 (0)