Skip to content

Commit 6cdba43

Browse files
committed
ci: harden workflow action pins
1 parent f41e11f commit 6cdba43

5 files changed

Lines changed: 15 additions & 10 deletions

File tree

File renamed without changes.

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ jobs:
2424
composer-deps: [lowest, stable]
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v6
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
28+
with:
29+
persist-credentials: false
2830

2931
- name: Setup PHP
30-
uses: shivammathur/setup-php@v2
32+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
3133
with:
3234
coverage: none
3335
php-version: ${{ matrix.php-version }}

.github/workflows/pr-conventions.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,25 @@ name: "conventions"
33
on:
44
pull_request: ~
55

6+
permissions:
7+
contents: read
8+
pull-requests: read
9+
610
jobs:
711
lint:
812
name: Validate PR and commits
913
runs-on: ubuntu-latest
1014
steps:
1115
- name: Checkout
12-
uses: actions/checkout@v6
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1317
with:
1418
fetch-depth: 0
19+
persist-credentials: false
1520

1621
- name: Validate commits
17-
uses: docker://aevea/commitsar
18-
env:
19-
COMMITSAR_CONFIG_PATH: .github/commitsar.yml
22+
uses: aevea/commitsar@909c3ab676c9af63cb84f2e38f395c7e89829b04 # v1.0.3
2023

2124
- name: Validate pull request title
22-
uses: amannn/action-semantic-pull-request@v6
25+
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
2326
env:
2427
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr-labeler.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
content-label:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/labeler@v6
15+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
1616
with:
1717
sync-labels: true
1818

1919
conventional-label:
2020
runs-on: ubuntu-latest
2121
timeout-minutes: 5
2222
steps:
23-
- uses: bcoe/conventional-release-labels@v1
23+
- uses: bcoe/conventional-release-labels@886f696738527c7be444262c327c89436dfb95a8 # v1.3.1
2424
with:
2525
type_labels: |
2626
{

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
release-please:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: googleapis/release-please-action@v4
16+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
1717
with:
1818
release-type: php
1919
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)