Skip to content

Commit bf8bce0

Browse files
committed
ci: pin actions to commit SHAs and bump to latest
Security-harden workflows by pinning actions to immutable commit SHAs (version in trailing comment), and update from v3: - actions/checkout v3 -> v6.0.3 - actions/setup-node v3 -> v6.4.0 - actions/cache v3 -> v5.0.5 (v3 cache backend was retired by GitHub)
1 parent 46a11e3 commit bf8bce0

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
timeout-minutes: 30
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2020
with:
2121
fetch-depth: 0
22-
- uses: actions/setup-node@v3
22+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2323
with:
2424
node-version: 18
2525
registry-url: https://registry.npmjs.org/

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
- 18.x
2020
- 16.x
2121
steps:
22-
- uses: actions/setup-node@v3
22+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2323
with:
2424
node-version: ${{ matrix.node }}
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2626
- name: Restore Dependency Cache
27-
uses: actions/cache@v3
27+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
2828
with:
2929
path: ~/.npm
3030
key: ${{ runner.OS }}-dependency-cache-${{ hashFiles('**/package.json') }}

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
name: Build and Deploy Docker Container with latest CLI
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/setup-node@v3
10+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1111
with:
1212
node-version: 16.x
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1414
with:
1515
fetch-depth: 0
1616
- name: GitHub Container Registry Login

0 commit comments

Comments
 (0)