Skip to content

Commit db7de32

Browse files
committed
pin all actions to sha with actions-up
1 parent c5a9ab7 commit db7de32

10 files changed

Lines changed: 24 additions & 24 deletions

.github/workflows/03-core-features--02-step-types.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
say-hello-action:
1919
runs-on: ubuntu-24.04
2020
steps:
21-
- uses: actions/hello-world-javascript-action@e76147da8e5c81eaf017dede5645551d4b94427b # v1.2.3
21+
- uses: actions/hello-world-javascript-action@081a6d193d1dcb38460df1e6927486d748730f9d # v1.1
2222
# - uses: actions/hello-world-javascript-action@v1 # This would work, but it would be less stable and less secure:
2323
with:
2424
who-to-greet: "from an action in the GitHub Action marketplace! 👋"

.github/workflows/04-advanced-features--02-artifacts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
echo "Generated by artifact-producer job on $(date)" >> artifact.txt
1414
1515
- name: Upload artifact
16-
uses: actions/upload-artifact@v4
16+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
1717
with:
1818
name: example-artifact
1919
path: artifact.txt
@@ -24,7 +24,7 @@ jobs:
2424
needs: artifact-producer
2525
steps:
2626
- name: Download artifact
27-
uses: actions/download-artifact@v4
27+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
2828
with:
2929
name: example-artifact
3030

.github/workflows/04-advanced-features--03-caching.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# Attempt to restore (misses on first run)
1414
- name: Restore cache
1515
id: demo-cache
16-
uses: actions/cache@v4
16+
uses: actions/cache@638ed79f9dc94c1de1baef91bcab5edaa19451f4 # v4.2.4
1717
with:
1818
path: demo-cache
1919
# For info on constructing an appropriate cache key see:
@@ -31,7 +31,7 @@ jobs:
3131
# Save cache only if we generated new content
3232
- name: Save cache
3333
if: steps.demo-cache.outputs.cache-hit != 'true'
34-
uses: actions/cache@v4
34+
uses: actions/cache@638ed79f9dc94c1de1baef91bcab5edaa19451f4 # v4.2.4
3535
with:
3636
path: demo-cache
3737
key: demo-cache-v1
@@ -52,8 +52,8 @@ jobs:
5252
working-directory: 04-advanced-features/caching/minimal-node-project
5353

5454
steps:
55-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
56-
- uses: actions/setup-node@v4
55+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
56+
- uses: actions/setup-node@d7a11313b581b306c961b506cfc8971208bb03f6 # v4.4.0
5757
with:
5858
node-version: 20
5959
cache: npm

.github/workflows/04-advanced-features--04-github-permissions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
pull-requests: read # Can read PR data only
4141
continue-on-error: true # Avoids failing entire workflow
4242
steps:
43-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
43+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
4444

4545
- name: Install GitHub CLI
4646
run: |
@@ -67,7 +67,7 @@ jobs:
6767
permissions:
6868
pull-requests: write
6969
steps:
70-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
70+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
7171

7272
- name: Install GitHub CLI
7373
run: |

.github/workflows/04-advanced-features--05-third-party-auth.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-24.04
99
steps:
1010
- name: "Configure AWS Credentials using static key"
11-
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
11+
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
1212
with:
1313
aws-region: us-east-2
1414
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -21,7 +21,7 @@ jobs:
2121
id-token: write # This is required for requesting the JWT for OIDC auth to AWS
2222
steps:
2323
- name: "Configure AWS Credentials - Action for GitHub Actions"
24-
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
24+
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1
2525
with:
2626
aws-region: us-east-2
2727
role-to-assume: arn:aws:iam::917774925227:role/github-actions-role

.github/workflows/04-advanced-features--08-workflow-commands.yaml

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

1010
steps:
1111
- name: Checkout source code
12-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
1313

1414
- name: Log annotations
1515
run: |

.github/workflows/06-authoring-actions--01-composite-action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-24.04
88
name: One usage of the composite action
99
steps:
10-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
10+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
1111
- id: composite-action-instance
1212
uses: ./06-authoring-actions/composite-action
1313
with:
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-24.04
2121
name: Another usage of the composite action
2222
steps:
23-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
2424
- id: composite-action-instance
2525
uses: ./06-authoring-actions/composite-action
2626
with:

.github/workflows/06-authoring-actions--04-javascript-actions.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Javascript action (no build)
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
1212
- name: Run javascript action
1313
uses: ./06-authoring-actions/javascript-actions/javascript-action-no-build
1414
id: hello
@@ -22,7 +22,7 @@ jobs:
2222
name: Javascript action (with build)
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
2626
with:
2727
submodules: true
2828
- name: Run javascript action
@@ -38,7 +38,7 @@ jobs:
3838
name: Typescript action
3939
steps:
4040
- name: Checkout
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
4242
with:
4343
submodules: true
4444
- name: Run typescript action

.github/workflows/06-authoring-actions--05-container-actions.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Shell Container Action (dynamic Dockerfile build)
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
1212
with:
1313
submodules: true
1414
- name: Run container action
@@ -24,7 +24,7 @@ jobs:
2424
name: Shell Container Action (public container image)
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
2828
- name: Run container action
2929
uses: ./06-authoring-actions/container-actions/shell-container-action-prebuilt
3030
id: hello
@@ -38,7 +38,7 @@ jobs:
3838
name: Python Container Action (dynamic Dockerfile build)
3939
steps:
4040
- name: Checkout
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
4242
- name: Run container action
4343
uses: ./06-authoring-actions/container-actions/python-container-action
4444
id: hello

.github/workflows/09-best-practices--01-cache-benchmark.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
mkdir -p "$ROOT_DIR/$DIR"
3434
3535
- name: Attach nscloud cache volume
36-
uses: namespacelabs/nscloud-cache-action@v1
36+
uses: namespacelabs/nscloud-cache-action@a289cf5d2fcd6874376aa92f0ef7f99dc923592a # v1.2.17
3737
with:
3838
path: ${{ env.ROOT_DIR }}/${{ env.DIR }}
3939

@@ -93,7 +93,7 @@ jobs:
9393
mkdir -p "$ROOT_DIR/$DIR"
9494
9595
- name: Attach nscloud cache volume
96-
uses: namespacelabs/nscloud-cache-action@v1
96+
uses: namespacelabs/nscloud-cache-action@a289cf5d2fcd6874376aa92f0ef7f99dc923592a # v1.2.17
9797
with:
9898
path: ${{ env.ROOT_DIR }}/${{ env.DIR }}
9999

@@ -153,7 +153,7 @@ jobs:
153153
154154
- name: Cache directory (ACTIONS)
155155
id: cache
156-
uses: actions/cache@v4
156+
uses: actions/cache@638ed79f9dc94c1de1baef91bcab5edaa19451f4 # v4.2.4
157157
with:
158158
path: ${{ env.ROOT_DIR }}/${{ env.DIR }}
159159
key: large-actions-${{ runner.os }}-${{ env.LARGE_SIZE_MB }}mb-${{ env.SALT }}
@@ -201,7 +201,7 @@ jobs:
201201
202202
- name: Cache directory (ACTIONS)
203203
id: cache
204-
uses: actions/cache@v4
204+
uses: actions/cache@638ed79f9dc94c1de1baef91bcab5edaa19451f4 # v4.2.4
205205
with:
206206
path: ${{ env.ROOT_DIR }}/${{ env.DIR }}
207207
key: many-actions-${{ runner.os }}-${{ env.SMALL_COUNT }}x${{ env.SMALL_SIZE_BYTES }}-${{ env.SALT }}

0 commit comments

Comments
 (0)