Skip to content

Commit 3d5770f

Browse files
authored
Merge pull request #458 from hashicorp/tsccr-auto-pinning/trusted/2023-09-18
SEC-090: Automated trusted workflow pinning (2023-09-18)
2 parents e66f244 + 0688979 commit 3d5770f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Diff for: .github/workflows/go-getter.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
go-version: ${{ matrix.go-version }}
2626

2727
- name: Checkout code
28-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
28+
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
2929

3030
- name: Create test directory
3131
run: |
3232
mkdir -p ${{ env.TEST_RESULTS_PATH }}
3333
3434
- name: Setup cache for go modules
35-
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
35+
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
3636
with:
3737
path: |
3838
~/.cache/go-build
@@ -59,15 +59,15 @@ jobs:
5959
run: go install gotest.tools/[email protected]
6060

6161
- name: Configure AWS Credentials
62-
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
62+
uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 # v4.0.0
6363
with:
6464
aws-region: us-east-1
6565
role-to-assume: arn:aws:iam::388664967494:role/hc-go-getter-test
6666
role-session-name: ${{ github.run_id }}
6767
audience: https://github.com/hashicorp
6868

6969
- name: 'Authenticate to Google Cloud'
70-
uses: 'google-github-actions/auth@v0.4.0'
70+
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1
7171
with:
7272
workload_identity_provider: 'projects/328212837253/locations/global/workloadIdentityPools/hc-go-getter-test/providers/github-hc-go-getter-test'
7373
service_account: hc-go-getter-test@hc-e56c0f7c21c448d2be9e7696073.iam.gserviceaccount.com
@@ -82,7 +82,7 @@ jobs:
8282
8383
# Save coverage report parts
8484
- name: Upload and save artifacts
85-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
85+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
8686
with:
8787
name: linux test results
8888
path: linux_cov.part
@@ -108,10 +108,10 @@ jobs:
108108
go-version: ${{ matrix.go-version }}
109109

110110
- name: Checkout code
111-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
111+
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
112112

113113
- name: Setup cache for go modules
114-
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
114+
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
115115
with:
116116
path: |
117117
~\AppData\Local\go-build
@@ -128,15 +128,15 @@ jobs:
128128
run: go install gotest.tools/[email protected]
129129

130130
- name: Configure AWS Credentials
131-
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0
131+
uses: aws-actions/configure-aws-credentials@8c3f20df09ac63af7b3ae3d7c91f105f857d8497 # v4.0.0
132132
with:
133133
aws-region: us-east-1
134134
role-to-assume: arn:aws:iam::388664967494:role/hc-go-getter-test
135135
role-session-name: ${{ github.run_id }}
136136
audience: https://github.com/hashicorp
137137

138138
- name: 'Authenticate to Google Cloud'
139-
uses: 'google-github-actions/auth@v0.4.0'
139+
uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1
140140
with:
141141
workload_identity_provider: 'projects/328212837253/locations/global/workloadIdentityPools/hc-go-getter-test/providers/github-hc-go-getter-test'
142142
service_account: hc-go-getter-test@hc-e56c0f7c21c448d2be9e7696073.iam.gserviceaccount.com
@@ -152,7 +152,7 @@ jobs:
152152
153153
# Save coverage report parts
154154
- name: Upload and save artifacts
155-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
155+
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
156156
with:
157157
name: windows test results
158158
path: win_cov.part

Diff for: .github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
19+
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
2020
with:
2121
fetch-depth: 0
2222
- name: Setup go
@@ -46,7 +46,7 @@ jobs:
4646
VERSION: 1.6.4
4747
SHA256SUM: 3ad66eebd443d32dd6c811dcf2d264b78678c75ed1d40c15434180d4453e60d2
4848
- name: GitHub Release
49-
uses: goreleaser/goreleaser-action@3fa32b8bb5620a2c1afe798654bbad59f9da4906 # v4.4.0
49+
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
5050
with:
5151
version: latest
5252
args: release --skip-validate --timeout "60m"

0 commit comments

Comments
 (0)