Skip to content

Commit 0df1876

Browse files
authored
chore: pin github actions by commit hash (#9017)
Closes #7618
1 parent bb27317 commit 0df1876

22 files changed

+91
-81
lines changed

.github/actions/core-dump/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010
shell: sh
1111

1212
- name: Backup core dump
13-
uses: actions/upload-artifact@v4
13+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
1414
with:
1515
name: core-dump
1616
path: /cores/*

.github/actions/setup-and-build/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ inputs:
88
runs:
99
using: "composite"
1010
steps:
11-
- uses: pnpm/action-setup@v4
11+
- uses: pnpm/action-setup@c5ba7f7862a0f64c1b1a05fbac13e0b8e86ba08c # v4
1212

1313
- name: Setup Node
14-
uses: actions/setup-node@v6
14+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
1515
with:
1616
node-version: ${{inputs.node}}
1717
check-latest: true
@@ -32,7 +32,7 @@ runs:
3232
run: echo "key=build-cache-${{ runner.os }}-${{ runner.arch }}-node-${{ inputs.node }}-${{ github.sha }}" >> $GITHUB_OUTPUT
3333

3434
- name: Restore build
35-
uses: actions/cache/restore@v4
35+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3636
id: cache-build-restore
3737
with:
3838
path: |
@@ -58,7 +58,7 @@ runs:
5858
run: pnpm check-bundle
5959

6060
- name: Cache build artifacts
61-
uses: actions/cache@v4
61+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
6262
with:
6363
path: |
6464
lib/

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ jobs:
3030
3131
steps:
3232
# <common-build> - Uses YAML anchors in the future
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3434
- uses: "./.github/actions/setup-and-build"
3535
with:
3636
node: 24
3737
# </common-build>
3838

3939
# Restore performance downloaded states
4040
- name: Restore performance state cache
41-
uses: actions/cache@v4
41+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
4242
with:
4343
path: packages/state-transition/test-cache
4444
key: perf-states-${{ hashFiles('packages/state-transition/test/perf/params.ts') }}

.github/workflows/binaries.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
arch: arm64
2828
runs-on: ${{matrix.os}}
2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3131
- name: Install arm64 specifics
3232
if: matrix.arch == 'arm64'
3333
run: |-
@@ -45,13 +45,13 @@ jobs:
4545
npx caxa -m "Unpacking Lodestar binary, please wait..." -e "dashboards/**" -e "docs/**" -D -p "pnpm clean:nm && pnpm install --frozen-lockfile --prod" --input . --output "lodestar" -- "{{caxa}}/node_modules/.bin/node" "--max-old-space-size=8192" "{{caxa}}/packages/cli/bin/lodestar.js"
4646
tar -czf "dist/lodestar-${{ inputs.version }}-${{ matrix.platform }}-${{ matrix.arch }}.tar.gz" "lodestar"
4747
- name: Upload binaries
48-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4949
with:
5050
name: binaries-${{ matrix.os }}
5151
path: dist/
5252
if-no-files-found: error
5353
- name: Sanity check binary
54-
uses: actions/github-script@v7
54+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
5555
with:
5656
script: |
5757
exec.exec('./lodestar dev');

.github/workflows/build-debug-node.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: apt-get install python3 g++ make python3-pip
1919

2020
- name: Download Node.js source
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2222
with:
2323
repository: "nodejs/node"
2424
ref: "v${{ github.event.inputs.version }}"
@@ -44,7 +44,7 @@ jobs:
4444
working-directory: "nodejs"
4545

4646
- name: Upload build to artifacts
47-
uses: actions/upload-artifact@v4
47+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4848
with:
4949
name: nodejs-debug-build-${{ github.event.inputs.version }}
5050
path: nodejs-debug-build-${{ github.event.inputs.version }}

.github/workflows/check-specrefs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2020

2121
- name: Check version consistency
2222
run: |

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747

4848
steps:
4949
- name: Checkout repository
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
5151

5252
# Initializes the CodeQL tools for scanning.
5353
- name: Initialize CodeQL
54-
uses: github/codeql-action/init@v2
54+
uses: github/codeql-action/init@8dca8a82e2fa1a2c8908956f711300f9c4a4f4f6 # v2
5555
with:
5656
languages: ${{ matrix.language }}
5757
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -64,7 +64,7 @@ jobs:
6464
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6565
# If this step fails, then you should remove it and run the build manually (see below)
6666
- name: Autobuild
67-
uses: github/codeql-action/autobuild@v2
67+
uses: github/codeql-action/autobuild@8dca8a82e2fa1a2c8908956f711300f9c4a4f4f6 # v2
6868

6969
# ℹ️ Command-line programs to run using the OS shell.
7070
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -77,4 +77,4 @@ jobs:
7777
# ./location_of_script_within_repo/buildscript.sh
7878

7979
- name: Perform CodeQL Analysis
80-
uses: github/codeql-action/analyze@v2
80+
uses: github/codeql-action/analyze@8dca8a82e2fa1a2c8908956f711300f9c4a4f4f6 # v2

.github/workflows/docker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
- arch: arm64
3030
runner: buildjet-4vcpu-ubuntu-2204-arm
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
3333
with:
3434
ref: ${{ inputs.ref || github.sha }}
3535
- name: Set up Docker Buildx
36-
uses: docker/setup-buildx-action@v3
36+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
3737
- name: Login to Docker Hub
38-
uses: docker/login-action@v3
38+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
3939
with:
4040
username: ${{ secrets.DOCKERHUB_USERNAME }}
4141
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -74,9 +74,9 @@ jobs:
7474
needs: docker
7575
steps:
7676
- name: Set up Docker Buildx
77-
uses: docker/setup-buildx-action@v3
77+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
7878
- name: Login to Docker Hub
79-
uses: docker/login-action@v3
79+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
8080
with:
8181
username: ${{ secrets.DOCKERHUB_USERNAME }}
8282
password: ${{ secrets.DOCKERHUB_TOKEN }}

.github/workflows/docs-backfill.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: Backfill versioned docs
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2626
with:
2727
ref: unstable
2828
fetch-depth: 0
@@ -73,9 +73,9 @@ jobs:
7373
7474
- name: Install pnpm
7575
if: steps.versions.outputs.missing != '' && github.event.inputs.dry_run != 'true'
76-
uses: pnpm/action-setup@v4
76+
uses: pnpm/action-setup@c5ba7f7862a0f64c1b1a05fbac13e0b8e86ba08c # v4
7777

78-
- uses: actions/setup-node@v6
78+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
7979
if: steps.versions.outputs.missing != '' && github.event.inputs.dry_run != 'true'
8080
with:
8181
node-version: 24

0 commit comments

Comments
 (0)