Skip to content

Commit 1f2ec17

Browse files
authored
Merge pull request #124 from hashicorp/rsc/bump-github-actions
Update internal github action workflows to avoid the Node 20 deprecation
2 parents e028f0f + 9804bdb commit 1f2ec17

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

.github/workflows/example.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
- { go: "1.16", goos: "solaris", goarch: "amd64" }
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
- name: Setup go
33-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
33+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
3434
with:
3535
go-version: ${{ matrix.go }}
3636
- name: Compile Binary
@@ -41,7 +41,7 @@ jobs:
4141
go build -o "$product_name" .
4242
zip "${{ env.product_name }}_${{ env.product_version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip" "$product_name"
4343
- name: Upload product artifact.
44-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
44+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4545
with:
4646
path: example/${{ env.product_name }}_${{ env.product_version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
4747
name: ${{ env.product_name }}_${{ env.product_version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
@@ -62,7 +62,7 @@ jobs:
6262
- { arch: "arm64" }
6363
steps:
6464
- name: Checkout
65-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
65+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6666
- name: Build
6767
# To run the example with the current commit use 'uses: ./'
6868
uses: ./
@@ -95,7 +95,7 @@ jobs:
9595
runs-on: ${{matrix.runner}}
9696
steps:
9797
- name: Checkout
98-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
98+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9999
- name: Build
100100
# To run the example with the current commit use 'uses: ./'
101101
uses: ./

.github/workflows/test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: |
1818
sudo git clone --depth 1 --branch "v$BATS_VERSION" "$BATS_REPO" "$BATS_PATH"
1919
echo "$BATS_PATH/bin" >> "$GITHUB_PATH"
20-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
- name: Run BATS tests
2222
run: make test
2323

@@ -27,18 +27,18 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
- name: Zip Test Bin
3232
run: |
3333
zip ./testdata/test_bin.zip ./testdata/test_bin
3434
zip ./testdata/actions-docker-build.zip ./testdata/actions-docker-build
3535
- name: Upload a test artifact.
36-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
36+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3737
with:
3838
path: testdata/test_bin.zip
3939
name: test_bin.zip
4040
- name: Upload a test artifact.
41-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
41+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4242
with:
4343
path: testdata/actions-docker-build.zip
4444
name: actions-docker-build.zip
@@ -51,7 +51,7 @@ jobs:
5151
- action-test-prep
5252
steps:
5353
- name: Checkout
54-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
54+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5555
# Test setup.
5656
- name: Move Dockerfile to Repo Root
5757
run: |
@@ -83,7 +83,7 @@ jobs:
8383
- action-test-prep
8484
steps:
8585
- name: Checkout
86-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
86+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8787
- name: Invoke Action
8888
uses: ./ # This is the action we're testing.
8989
with:
@@ -111,7 +111,7 @@ jobs:
111111
- action-test-prep
112112
steps:
113113
- name: Checkout
114-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
114+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
115115
- name: Invoke Action
116116
uses: ./ # This is the action we're testing.
117117
with:
@@ -139,7 +139,7 @@ jobs:
139139
- action-test-prep
140140
steps:
141141
- name: Checkout
142-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
142+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
143143
- name: Invoke Action
144144
uses: ./
145145
with:
@@ -164,7 +164,7 @@ jobs:
164164
- action-test-prep
165165
steps:
166166
- name: Checkout
167-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
167+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
168168
- name: Invoke Action
169169
id: docker-build
170170
uses: ./
@@ -202,7 +202,7 @@ jobs:
202202
- action-test-prep
203203
steps:
204204
- name: Checkout
205-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
205+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
206206
# Test setup.
207207
- name: Move Dockerfile to Repo Root
208208
run: |
@@ -228,7 +228,7 @@ jobs:
228228
- action-test-prep
229229
steps:
230230
- name: Checkout
231-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
231+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
232232
# Test setup
233233
- name: Move Dockerfile to Repo Root
234234
run: |
@@ -249,10 +249,10 @@ jobs:
249249
- action-test-prep
250250
steps:
251251
- name: Checkout
252-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
252+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
253253
# Handle the artifact download ourselves
254254
- name: Download Product Zip Artifact
255-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
255+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
256256
with:
257257
path: archive
258258
name: actions-docker-build.zip

0 commit comments

Comments
 (0)