Skip to content

Commit b0fe647

Browse files
Pin GitHub Actions to full-length commit SHAs (#1729)
1 parent 813469d commit b0fe647

8 files changed

Lines changed: 35 additions & 26 deletions

File tree

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ updates:
1717
# in case the feed's ingestion lag drifts.
1818
cooldown:
1919
default-days: 10
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
groups:
23+
github-actions:
24+
patterns: ["*"]
25+
schedule:
26+
interval: "weekly"
27+
cooldown:
28+
default-days: 7

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
build:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
1919

2020
- name: Setup Node.js
21-
uses: actions/setup-node@v4
21+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2222
with:
2323
node-version: '22'
2424
cache: 'npm'

.github/workflows/e2e-autotest.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
4040

4141
- name: Setup Node.js
42-
uses: actions/setup-node@v4
42+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4343
with:
4444
node-version: '22'
4545
cache: npm
@@ -54,7 +54,7 @@ jobs:
5454
run: npx @vscode/vsce@latest package -o vscode-java-pack-pr.vsix
5555

5656
- name: Upload branch VSIX
57-
uses: actions/upload-artifact@v4
57+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5858
with:
5959
name: pack-vsix
6060
path: vscode-java-pack-pr.vsix
@@ -67,7 +67,7 @@ jobs:
6767
matrix: ${{ steps.scan.outputs.matrix }}
6868
steps:
6969
- name: Checkout
70-
uses: actions/checkout@v4
70+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
7171

7272
- name: Resolve test plan matrix
7373
id: scan
@@ -99,7 +99,7 @@ jobs:
9999

100100
steps:
101101
- name: Checkout
102-
uses: actions/checkout@v4
102+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
103103

104104
- name: Clone vscode-java (test projects)
105105
run: git clone --depth 1 https://github.com/redhat-developer/vscode-java.git ../vscode-java
@@ -108,13 +108,13 @@ jobs:
108108
run: git clone --depth 1 https://github.com/eclipse-jdtls/eclipse.jdt.ls.git ../eclipse.jdt.ls
109109

110110
- name: Setup Node.js
111-
uses: actions/setup-node@v4
111+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
112112
with:
113113
node-version: 22
114114

115115
- name: Setup Java 25 (for java25 test plans)
116116
if: contains(matrix.plan, 'java25')
117-
uses: actions/setup-java@v4
117+
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4.9.1
118118
with:
119119
distribution: temurin
120120
java-version: 25-ea
@@ -141,7 +141,7 @@ jobs:
141141
}
142142
143143
- name: Setup Java 21
144-
uses: actions/setup-java@v4
144+
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4.9.1
145145
with:
146146
distribution: temurin
147147
java-version: 21
@@ -183,7 +183,7 @@ jobs:
183183
184184
- name: Download vscode-java-pack VSIX (from branch)
185185
if: ${{ github.event_name != 'schedule' }}
186-
uses: actions/download-artifact@v4
186+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
187187
with:
188188
name: pack-vsix
189189
path: vsix
@@ -366,7 +366,7 @@ jobs:
366366
367367
- name: Upload results
368368
if: always()
369-
uses: actions/upload-artifact@v4
369+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
370370
with:
371371
name: results-${{ matrix.plan }}-${{ matrix.os }}
372372
path: test-results/
@@ -380,15 +380,15 @@ jobs:
380380

381381
steps:
382382
- name: Setup Node.js
383-
uses: actions/setup-node@v4
383+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
384384
with:
385385
node-version: 22
386386

387387
- name: Install autotest CLI
388388
run: npm install -g @vscjava/vscode-autotest
389389

390390
- name: Download all results
391-
uses: actions/download-artifact@v4
391+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
392392
with:
393393
pattern: results-*
394394
path: all-results
@@ -425,7 +425,7 @@ jobs:
425425
426426
- name: Upload aggregate results
427427
if: always()
428-
uses: actions/upload-artifact@v4
428+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
429429
with:
430430
name: e2e-aggregate-summary
431431
path: test-results/summary.md

.github/workflows/issueLens-run.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ jobs:
2525
timeout-minutes: 10
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
28+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
2929
with:
3030
persist-credentials: false
3131

3232
- name: Setup Node.js 22
33-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
33+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3434
with:
3535
node-version: '22'
3636

3737
- name: Setup Python 3.12
38-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
38+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
3939
with:
4040
python-version: '3.12'
4141

.github/workflows/issueSnapshot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1515
REPO: ${{ github.event.repository.name }}
1616
- name: Save artifacts
17-
uses: actions/upload-artifact@v3
17+
uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3.2.1
1818
with:
1919
path: ./*.json
2020
retention-days: 1
2121
- name: Log in to Azure
22-
uses: azure/login@v1
22+
uses: azure/login@cb79c773a3cfa27f31f25eb3f677781210c9ce3d # v1.6.1
2323
with:
2424
creds: ${{ secrets.AZURE_CREDS }}
2525
- name: Upload to Azure
26-
uses: azure/CLI@v1
26+
uses: azure/CLI@4db43908b9df2e7ac93c8275a8f9a448c59338dd # v1.0.9
2727
with:
2828
inlineScript: |
2929
az storage blob upload-batch --account-name ${{ vars.AZURE_STORAGE_ACCOUNT_NAME }} --auth-mode login -d ${{ vars.AZURE_STORAGE_CONTAINER_NAME }} -s .

.github/workflows/no-response.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
noResponse:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/stale@v9
21+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
2222
with:
2323
repo-token: ${{ secrets.GITHUB_TOKEN }}
2424
# Only process issues with "needs more info" label

.github/workflows/triage-agent.yml

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

2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
2525

2626
- name: Get issue data
2727
id: get_issue
28-
uses: actions/github-script@v6
28+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
2929
with:
3030
script: |
3131
const eventName = context.eventName;

.github/workflows/triage-all-open-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- name: Get all open issues
3030
id: get_issues
31-
uses: actions/github-script@v6
31+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
3232
with:
3333
script: |
3434
// Use Search API to filter issues at API level
@@ -85,7 +85,7 @@ jobs:
8585
8686
- name: Trigger triage workflow for issue
8787
if: inputs.dry_run != true
88-
uses: actions/github-script@v6
88+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
8989
with:
9090
script: |
9191
const issueNumber = '${{ matrix.issue_number }}';

0 commit comments

Comments
 (0)