Skip to content

Commit 3f77381

Browse files
authored
github: Pin actions and tools to specific version (#1047)
2 parents ffb9148 + db87f4d commit 3f77381

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
needs: authorize
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v4.2.2
2929
with:
3030
ref: ${{ github.event.pull_request.head.sha || github.ref }}
3131
#ref: "refs/pull/${{ github.event.number }}/merge" # THIS IS INSECURE
3232

3333
- name: Setup Golang with cache
34-
uses: actions/setup-go@v5
34+
uses: actions/setup-go@v5.5.0
3535
with:
3636
go-version-file: go.mod
3737
cache: false
@@ -56,7 +56,7 @@ jobs:
5656
run: go vet -vettool=${HOME}/go/bin/sqlclosecheck ./...
5757

5858
- name: Staticcheck
59-
uses: dominikh/staticcheck-action@v1
59+
uses: dominikh/staticcheck-action@v1.4.1
6060
with:
6161
version: "2025.1.1"
6262
build-tags: "preview"

.github/workflows/goreleaser.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,26 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v4.2.2
1717
with:
1818
fetch-depth: 0
1919
- name: Set up Go
20-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@v5.5.0
2121
with:
2222
go-version: "1.21"
2323
- name: Run GoReleaser
24-
uses: goreleaser/goreleaser-action@v4
24+
uses: goreleaser/goreleaser-action@v4.6.0
2525
with:
2626
distribution: goreleaser
27-
version: latest
27+
version: v2.12.7
2828
args: release --clean
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_TO_TAP }}
3131
- name: Run GoReleaser to turso-cli repo
32-
uses: goreleaser/goreleaser-action@v4
32+
uses: goreleaser/goreleaser-action@v4.6.0
3333
with:
3434
distribution: goreleaser
35-
version: latest
35+
version: v2.12.7
3636
args: release --clean --config .goreleaser-self.yaml
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_TO_SELF }}
@@ -43,7 +43,7 @@ jobs:
4343
- name: Echo
4444
run: echo ${{ steps.get_version.outputs.VERSION }}
4545
- name: Update Turso backoffice
46-
uses: fjogeleit/http-request-action@v1
46+
uses: fjogeleit/http-request-action@v1.16.5
4747
with:
4848
url: 'https://api.turso.tech/releases'
4949
method: 'POST'

0 commit comments

Comments
 (0)