Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit05655ef

Browse files
authored
chore: pin github actions to exact commits (#126)
1 parentd0f5e21 commit05655ef

File tree

2 files changed

+54
-46
lines changed

2 files changed

+54
-46
lines changed

‎.github/workflows/release.yml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
11
name:release
22

33
on:
4-
push:
5-
tags:
6-
-'v*'
4+
push:
5+
tags:
6+
-"v*"
77

88
permissions:
9-
contents:write
9+
contents:write
1010

1111
jobs:
12-
goreleaser:
13-
runs-on:ubuntu-latest
14-
steps:
15-
-name:Checkout
16-
uses:actions/checkout@v4
17-
-name:Unshallow
18-
run:git fetch --prune --unshallow
19-
-name:Setup Go
20-
uses:actions/setup-go@v5
21-
with:
22-
go-version:1.22.4
23-
-name:Import GPG Key
24-
id:import_gpg
25-
uses:crazy-max/ghaction-import-gpg@v6.2.0
26-
with:
27-
gpg_private_key:${{ secrets.GPG_PRIVATE_KEY }}
28-
-name:Run GoReleaser
29-
uses:goreleaser/goreleaser-action@v6.0.0
30-
with:
31-
version:latest
32-
args:release --clean
33-
env:
34-
GPG_FINGERPRINT:${{ steps.import_gpg.outputs.fingerprint }}
35-
# GitHub sets this automatically
36-
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}
37-
12+
goreleaser:
13+
runs-on:ubuntu-latest
14+
steps:
15+
-name:Checkout
16+
uses:actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683# v4.2.2
17+
-name:Unshallow
18+
run:git fetch --prune --unshallow
19+
-name:Setup Go
20+
uses:actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed# v5.1.0
21+
with:
22+
go-version:"1.22"
23+
-name:Import GPG Key
24+
id:import_gpg
25+
uses:crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5# v6.2.0
26+
with:
27+
gpg_private_key:${{ secrets.GPG_PRIVATE_KEY }}
28+
-name:Run GoReleaser
29+
uses:goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200# v6.0.0
30+
with:
31+
version:latest
32+
args:release --clean
33+
env:
34+
GPG_FINGERPRINT:${{ steps.import_gpg.outputs.fingerprint }}
35+
# GitHub sets this automatically
36+
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/test.yml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,34 @@ jobs:
2424
runs-on:ubuntu-latest
2525
timeout-minutes:5
2626
steps:
27-
-uses:actions/checkout@v4
28-
-uses:actions/setup-go@v5
27+
-uses:actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683# v4.2.2
28+
29+
-uses:actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed# v5.1.0
2930
with:
3031
go-version-file:"go.mod"
3132
cache:true
33+
3234
-run:go mod download
35+
3336
-run:go build -v .
37+
3438
-name:Run linters
35-
uses:golangci/golangci-lint-action@v6
39+
uses:golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8# v6.1.1
3640
with:
3741
version:latest
3842

3943
generate:
4044
runs-on:ubuntu-latest
4145
steps:
42-
-uses:actions/checkout@v4
43-
-uses:actions/setup-go@v5
46+
-uses:actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683# v4.2.2
47+
48+
-uses:actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed# v5.1.0
4449
with:
4550
go-version-file:"go.mod"
4651
cache:true
52+
4753
-run:go generate ./...
54+
4855
-name:git diff
4956
run:|
5057
git diff --compact-summary --exit-code || \
@@ -72,41 +79,43 @@ jobs:
7279
-"1.8.*"
7380
-"1.9.*"
7481
steps:
75-
-uses:actions/checkout@v4
76-
-uses:actions/setup-go@v5
82+
-uses:actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683# v4.2.2
83+
84+
-uses:actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed# v5.1.0
7785
with:
7886
go-version-file:"go.mod"
7987
cache:true
80-
-uses:hashicorp/setup-terraform@v3
88+
89+
-uses:hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd# v3.1.2
8190
with:
8291
terraform_version:${{ matrix.terraform }}
8392
terraform_wrapper:false
93+
8494
-run:go mod download
85-
-env:
95+
96+
-run:go test -v -cover ./internal/provider/
97+
env:
8698
TF_ACC:"1"
8799
CODER_ENTERPRISE_LICENSE:${{ secrets.CODER_ENTERPRISE_LICENSE }}
88-
run:go test -v -cover ./internal/provider/
89100
timeout-minutes:10
90101

91102
lint:
92103
name:Lint
93104
runs-on:ubuntu-latest
94105
timeout-minutes:5
95106
steps:
96-
-name:Set up Go
97-
uses:actions/setup-go@v5
107+
-uses:actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683# v4.2.2
108+
109+
-uses:actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed# v5.1.0
98110
with:
99111
go-version:"1.22"
100112
id:go
101113

102-
-uses:hashicorp/setup-terraform@v3
114+
-uses:hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd# v3.1.2
103115
with:
104116
terraform_version:"1.9.*"
105117
terraform_wrapper:false
106118

107-
-name:Check out code into the Go module directory
108-
uses:actions/checkout@v4
109-
110119
-name:Get dependencies
111120
run:|
112121
go mod download

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp