Skip to content

Commit a0d0c21

Browse files
committed
Harden GitHub workflows
1 parent 5a8a6e6 commit a0d0c21

5 files changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/bc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ on:
2323

2424
name: backwards compatibility
2525

26+
permissions:
27+
contents: read
2628
jobs:
2729
roave_bc_check:
28-
uses: yiisoft/actions/.github/workflows/bc.yml@master
30+
uses: yiisoft/actions/.github/workflows/bc.yml@ab62d6b3b0e0cff6c9724ec5a395bedb41c639a2
2931
with:
3032
os: >-
3133
['ubuntu-latest']

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ name: build
2424

2525
permissions:
2626
contents: read
27-
2827
jobs:
2928
phpunit:
30-
uses: yiisoft/actions/.github/workflows/phpunit.yml@master
29+
uses: yiisoft/actions/.github/workflows/phpunit.yml@ab62d6b3b0e0cff6c9724ec5a395bedb41c639a2
3130
secrets:
3231
codecovToken: ${{ secrets.CODECOV_TOKEN }}
3332
with:

.github/workflows/composer-require-checker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ on:
2424

2525
name: Composer require checker
2626

27+
permissions:
28+
contents: read
2729
jobs:
2830
composer-require-checker:
29-
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@master
31+
uses: yiisoft/actions/.github/workflows/composer-require-checker.yml@ab62d6b3b0e0cff6c9724ec5a395bedb41c639a2
3032
with:
3133
os: >-
3234
['ubuntu-latest']

.github/workflows/mutation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ on:
2020

2121
name: mutation test
2222

23+
permissions:
24+
contents: read
2325
jobs:
2426
mutation:
25-
uses: yiisoft/actions/.github/workflows/infection.yml@master
27+
uses: yiisoft/actions/.github/workflows/infection.yml@ab62d6b3b0e0cff6c9724ec5a395bedb41c639a2
2628
with:
2729
os: >-
2830
['ubuntu-latest']

.github/workflows/static.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ on:
2222

2323
name: static analysis
2424

25+
permissions:
26+
contents: read
2527
jobs:
2628
psalm:
27-
uses: yiisoft/actions/.github/workflows/psalm.yml@master
29+
uses: yiisoft/actions/.github/workflows/psalm.yml@ab62d6b3b0e0cff6c9724ec5a395bedb41c639a2
2830
with:
2931
os: >-
3032
['ubuntu-latest']

0 commit comments

Comments
 (0)