Skip to content

Commit c4bb23f

Browse files
chore: pin GitHub Actions to SHA for supply chain security (#28)
Pin all external GitHub Actions to specific commit SHAs to prevent supply chain attacks via malicious tag updates. Actions pinned: - actions/checkout@v4 - actions/setup-node@v4 - docker/build-push-action@v6 - filiptronicek/get-last-job-status@main - google-github-actions/auth@v2 - google-github-actions/setup-gcloud@v2 - rtCamp/action-slack-notify@v2 Part of PDE-138 Closes PDE-221 Co-authored-by: Ona <[email protected]>
1 parent 652000c commit c4bb23f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/gitpod-web-docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # pin@v4
1010
- name: Auth Google Cloud SDK
11-
uses: google-github-actions/auth@v2
11+
uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # pin@v2
1212
with:
1313
credentials_json: ${{ secrets.GCP_SA_KEY }}
1414
- name: Set up Google Cloud SDK
15-
uses: google-github-actions/setup-gcloud@v2
15+
uses: google-github-actions/setup-gcloud@e427ad8a34f8676edf47cf7d7925499adf3eb74f # pin@v2
1616
with:
1717
project_id: ${{ secrets.GCP_PROJECT_ID }}
1818
- name: Set up Docker
1919
run: |
2020
gcloud auth configure-docker --quiet
21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # pin@v4
2222
with:
2323
node-version: 20
2424
cache: 'yarn'
@@ -43,7 +43,7 @@ jobs:
4343
yarn --cwd gitpod-web/ inject-commit-hash
4444
4545
- name: Docker build and push
46-
uses: docker/build-push-action@v6
46+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # pin@v6
4747
with:
4848
push: true
4949
context: gitpod-web
@@ -60,11 +60,11 @@ jobs:
6060
6161
- name: Get previous job's status
6262
id: lastrun
63-
uses: filiptronicek/get-last-job-status@main
63+
uses: filiptronicek/get-last-job-status@1c211ff20d1706ff0bc3fc8022f7bd6518b88bc4 # pin@main
6464

6565
- name: Slack Notification
6666
if: ${{ (success() && steps.lastrun.outputs.status == 'failed') || failure() }}
67-
uses: rtCamp/action-slack-notify@v2
67+
uses: rtCamp/action-slack-notify@cdf0a2130cbcdfd82ba5fcac8e076370bf381b36 # pin@v2
6868
env:
6969
SLACK_WEBHOOK: ${{ secrets.IDE_SLACK_WEBHOOK }}
7070
SLACK_COLOR: ${{ job.status }}

.github/workflows/release-gitpod-remote.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
release:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # pin@v4
1111

12-
- uses: actions/setup-node@v4
12+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # pin@v4
1313
with:
1414
node-version: 20
1515

0 commit comments

Comments
 (0)