Skip to content

Commit 827595a

Browse files
authored
chore(ci): pin external gh actions to git sha (#46)
* chore(ci): pin external gh actions to git sha * fix typo
1 parent 2ecceaa commit 827595a

File tree

5 files changed

+24
-21
lines changed

5 files changed

+24
-21
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
if: github.event.pull_request.merged == true
1515
runs-on: ubuntu-latest
1616
steps:
17+
- name: Checkout
18+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
1719
- name: Setup Go
18-
uses: actions/setup-go@v3
20+
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
1921
with:
20-
go-version: "1.18"
21-
- name: Checkout
22-
uses: actions/checkout@v3
22+
go-version-file: 'go.mod'
2323
- name: Generate documentation
2424
run: make generate
2525
- name: Create PR for docs update
26-
uses: peter-evans/create-pull-request@v4
26+
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4
2727
with:
2828
add-paths: docs/
2929
branch: chore/update-docs

.github/workflows/lint.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ jobs:
55
golangci-lint:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/setup-go@v3
8+
- name: Checkout
9+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
10+
- name: Setup Go
11+
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
912
with:
10-
go-version: 1.18
11-
- uses: actions/checkout@v3
12-
- uses: golangci/golangci-lint-action@v3
13+
go-version-file: 'go.mod'
14+
- name: Lint
15+
uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # v3.6.0
1316
with:
1417
version: latest
1518
args: --timeout 10m

.github/workflows/release.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ jobs:
77
goreleaser:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v3
10+
- name: Checkout head
11+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
1212

1313
- name: Unshallow
1414
run: git fetch --prune --unshallow
1515

16-
- name: Set up Go
17-
uses: actions/setup-go@v3
16+
- name: Setup go
17+
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
1818
with:
19-
go-version: 1.18
19+
go-version-file: 'go.mod'
2020

2121
- name: Describe plugin
2222
id: plugin_describe
2323
run: echo "::set-output name=api_version::$(go run . describe | jq -r '.api_version')"
2424

2525
- name: Import GPG key
2626
id: import_gpg
27-
uses: paultyng/ghaction-import-gpg@v2.1.0
27+
uses: crazy-max/ghaction-import-gpg@72b6676b71ab476b77e676928516f6982eef7a41 # v5.3.0
2828
env:
2929
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
3030
PASSPHRASE: ${{ secrets.PASSPHRASE }}
3131

3232
- name: Run GoReleaser
33-
uses: goreleaser/goreleaser-action@v2
33+
uses: goreleaser/goreleaser-action@b953231f81b8dfd023c58e0854a721e35037f28b # v2.9.1
3434
with:
3535
version: latest
3636
args: release --rm-dist

.github/workflows/test-plugin-example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
UPCLOUD_API_PASSWORD: ${{ secrets.UPCLOUD_API_PASSWORD }}
2626
steps:
2727
- name: Checkout Repository
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
2929

3030
- name: Init
3131
uses: hashicorp/packer-github-actions@master

.github/workflows/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313

1414
steps:
15-
- uses: actions/checkout@v3
16-
17-
- name: Setup
18-
uses: actions/setup-go@v3
15+
- name: Checkout
16+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
17+
- name: Setup Go
18+
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
1919
with:
2020
go-version: ${{ matrix.go-version }}
2121

0 commit comments

Comments
 (0)