Skip to content

Commit 1c700d2

Browse files
Merge pull request #985 from laravel/pin-github-actions
Pin GitHub Actions to commit SHAs and add Dependabot config
2 parents d4b4718 + 3bacb8f commit 1c700d2

6 files changed

Lines changed: 64 additions & 13 deletions

File tree

.github/dependabot.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
groups:
8+
github-actions:
9+
patterns:
10+
- "*"
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
schedule:
14+
interval: "weekly"
15+
target-branch: "8.x"
16+
groups:
17+
github-actions:
18+
patterns:
19+
- "*"
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
schedule:
23+
interval: "weekly"
24+
target-branch: "9.x"
25+
groups:
26+
github-actions:
27+
patterns:
28+
- "*"
29+
- package-ecosystem: "github-actions"
30+
directory: "/"
31+
schedule:
32+
interval: "weekly"
33+
target-branch: "10.x"
34+
groups:
35+
github-actions:
36+
patterns:
37+
- "*"

.github/workflows/issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ permissions:
99

1010
jobs:
1111
help-wanted:
12-
uses: laravel/.github/.github/workflows/issues.yml@main
12+
uses: laravel/.github/.github/workflows/issues.yml@9c15e86fffce728fb6c50ebeae24fd63e98f4d1d # main

.github/workflows/pull-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ permissions:
99

1010
jobs:
1111
uneditable:
12-
uses: laravel/.github/.github/workflows/pull-requests.yml@main
12+
uses: laravel/.github/.github/workflows/pull-requests.yml@9c15e86fffce728fb6c50ebeae24fd63e98f4d1d # main

.github/workflows/static-analysis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- '*.x'
88
pull_request:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
types:
1215
runs-on: ubuntu-24.04
@@ -20,17 +23,19 @@ jobs:
2023

2124
steps:
2225
- name: Checkout code
23-
uses: actions/checkout@v4
26+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
27+
with:
28+
persist-credentials: false
2429

2530
- name: Setup PHP
26-
uses: shivammathur/setup-php@v2
31+
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
2732
with:
2833
php-version: 8.4
2934
tools: composer:v2
3035
coverage: none
3136

3237
- name: Install dependencies
33-
uses: nick-fields/retry@v3
38+
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4
3439
with:
3540
timeout_minutes: 5
3641
max_attempts: 5

.github/workflows/tests.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
schedule:
1010
- cron: '0 0 * * *'
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
tests:
1417
runs-on: ubuntu-22.04
@@ -45,10 +48,12 @@ jobs:
4548

4649
steps:
4750
- name: Checkout code
48-
uses: actions/checkout@v4
51+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
52+
with:
53+
persist-credentials: false
4954

5055
- name: Setup PHP
51-
uses: shivammathur/setup-php@v2
56+
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
5257
with:
5358
php-version: ${{ matrix.php }}
5459
extensions: dom, curl, libxml, mbstring, zip
@@ -84,10 +89,12 @@ jobs:
8489

8590
steps:
8691
- name: Checkout code
87-
uses: actions/checkout@v4
92+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
93+
with:
94+
persist-credentials: false
8895

8996
- name: Setup PHP
90-
uses: shivammathur/setup-php@v2
97+
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
9198
with:
9299
php-version: ${{ matrix.php }}
93100
extensions: dom, curl, libxml, mbstring, zip
@@ -118,10 +125,12 @@ jobs:
118125

119126
steps:
120127
- name: Checkout code
121-
uses: actions/checkout@v4
128+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
129+
with:
130+
persist-credentials: false
122131

123132
- name: Start Typesense
124-
uses: jirevwe/typesense-github-action@v1.0.1
133+
uses: jirevwe/typesense-github-action@ef4ba079d744a24d2384ca7d973688340ae98b4c # v1.0.1
125134
with:
126135
typesense-version: 30.1
127136
typesense-api-key: masterKey
@@ -130,7 +139,7 @@ jobs:
130139
run: sleep 10 && curl http://localhost:8108/health
131140

132141
- name: Setup PHP
133-
uses: shivammathur/setup-php@v2
142+
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2
134143
with:
135144
php-version: ${{ matrix.php }}
136145
extensions: dom, curl, libxml, mbstring, zip

.github/workflows/update-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ permissions:
99

1010
jobs:
1111
update:
12-
uses: laravel/.github/.github/workflows/update-changelog.yml@main
12+
uses: laravel/.github/.github/workflows/update-changelog.yml@9c15e86fffce728fb6c50ebeae24fd63e98f4d1d # main

0 commit comments

Comments
 (0)