Skip to content

Commit dd7d77e

Browse files
authored
harden GH actions (#9)
Signed-off-by: Chuck Adams <chaz@chaz.works>
1 parent cb40873 commit dd7d77e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/lint-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
pull_request:
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
test:
912
runs-on: ubuntu-24.04
@@ -19,10 +22,12 @@ jobs:
1922
- '8.5'
2023
name: PHP ${{ matrix.php-version }}
2124
steps:
22-
- uses: actions/checkout@v6
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
26+
with:
27+
persist-credentials: false
2328

2429
- name: Set up PHP
25-
uses: shivammathur/setup-php@v2
30+
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
2631
with:
2732
php-version: ${{ matrix.php-version }}
2833
coverage: none

0 commit comments

Comments
 (0)