Skip to content

Commit 1a1ac22

Browse files
authored
.github/workflows: Pin actions versions to SHAs (#247)
Reference: https://github.com/hashicorp/terraform-providers-devex-internal/issues/118
1 parent a337d40 commit 1a1ac22

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

.github/workflows/add-content-to-project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: "Set Issue to 'Priority = Triage Next'"
22-
uses: leonsteinhaeuser/[email protected]
22+
uses: leonsteinhaeuser/project-beta-automations@7f947733020ee03daa363d16ea1223717b132f11 # v2.0.1
2323
if: github.event_name == 'issues'
2424
with:
2525
gh_token: ${{ secrets.TF_DEVEX_PROJECT_GITHUB_TOKEN }}
@@ -29,7 +29,7 @@ jobs:
2929
operation_mode: custom_field
3030
custom_field_values: '[{\"name\":\"Priority\",\"type\":\"single_select\",\"value\":\"Triage Next\"}]'
3131
- name: "Set Pull Request to 'Priority = Triage Next'"
32-
uses: leonsteinhaeuser/[email protected]
32+
uses: leonsteinhaeuser/project-beta-automations@7f947733020ee03daa363d16ea1223717b132f11 # v2.0.1
3333
if: github.event_name == 'pull_request_target'
3434
with:
3535
gh_token: ${{ secrets.TF_DEVEX_PROJECT_GITHUB_TOKEN }}

.github/workflows/ci-github-actions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
actionlint:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-go@v3
16+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
17+
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
1818
with:
1919
go-version-file: 'go.mod'
2020
- run: go install github.com/rhysd/actionlint/cmd/actionlint@latest

.github/workflows/ci-go.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@ jobs:
1616
golangci-lint:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
20-
- uses: actions/setup-go@v3
19+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
20+
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2121
with:
2222
go-version-file: 'go.mod'
2323
- run: go mod download
24-
- uses: golangci/[email protected]
24+
- uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 # v3.3.1
2525
terraform-provider-corner-tfprotov5:
2626
defaults:
2727
run:
2828
working-directory: terraform-provider-corner
2929
name: tfprotov5 (${{ matrix.os}}, Terraform ${{ matrix.terraform}})
3030
runs-on: ${{ matrix.os }}
3131
steps:
32-
- uses: actions/checkout@v3
33-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
33+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
3434
with:
3535
path: terraform-provider-corner
3636
repository: hashicorp/terraform-provider-corner
37-
- uses: actions/setup-go@v3
37+
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
3838
with:
3939
go-version-file: 'go.mod'
40-
- uses: hashicorp/setup-terraform@v2
40+
- uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2.0.3
4141
with:
4242
terraform_version: ${{ matrix.terraform }}
4343
terraform_wrapper: false
@@ -70,15 +70,15 @@ jobs:
7070
name: tfprotov6 (${{ matrix.os}}, Terraform ${{ matrix.terraform}})
7171
runs-on: ${{ matrix.os }}
7272
steps:
73-
- uses: actions/checkout@v3
74-
- uses: actions/checkout@v3
73+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
74+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
7575
with:
7676
path: terraform-provider-corner
7777
repository: hashicorp/terraform-provider-corner
78-
- uses: actions/setup-go@v3
78+
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
7979
with:
8080
go-version-file: 'go.mod'
81-
- uses: hashicorp/setup-terraform@v2
81+
- uses: hashicorp/setup-terraform@633666f66e0061ca3b725c73b2ec20cd13a8fdd1 # v2.0.3
8282
with:
8383
terraform_version: ${{ matrix.terraform }}
8484
terraform_wrapper: false
@@ -106,14 +106,14 @@ jobs:
106106
matrix:
107107
go-version: ['1.19', '1.18']
108108
steps:
109-
- uses: actions/checkout@v3
110-
- uses: actions/setup-go@v3
109+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
110+
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
111111
with:
112112
go-version: ${{ matrix.go-version }}
113113
- run: go mod download
114114
- run: go test -coverprofile=coverage.out ./...
115115
- run: go tool cover -html=coverage.out -o coverage.html
116-
- uses: actions/upload-artifact@v3
116+
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
117117
with:
118118
name: go-${{ matrix.go-version }}-coverage
119119
path: coverage.html

.github/workflows/ci-goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
check:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-go@v3
16+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
17+
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
1818
with:
1919
go-version-file: 'go.mod'
20-
- uses: goreleaser/goreleaser-action@v4
20+
- uses: goreleaser/goreleaser-action@8f67e590f2d095516493f017008adc464e63adb1 # v4.1.0
2121
with:
2222
args: check

.github/workflows/ci-protobuf.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
protoc:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-go@v3
20+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
21+
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2222
with:
2323
go-version-file: 'go.mod'
2424
- uses: arduino/setup-protoc@v1

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
goreleaser:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
1919
with:
2020
# Required for release notes
2121
fetch-depth: 0
22-
- uses: actions/setup-go@v3
22+
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2323
with:
2424
go-version-file: 'go.mod'
2525
- name: Generate Release Notes
2626
# Fetch CHANGELOG.md contents up to Git tag prior to this release, skipping top two lines
2727
run: sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags | tr -d v)/q;p" CHANGELOG.md > /tmp/release-notes.txt
28-
- uses: goreleaser/goreleaser-action@v4
28+
- uses: goreleaser/goreleaser-action@8f67e590f2d095516493f017008adc464e63adb1 # v4.1.0
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
with:

0 commit comments

Comments
 (0)