Skip to content

Commit 8a3dbe5

Browse files
Harden CI image refs
1 parent c57176f commit 8a3dbe5

5 files changed

Lines changed: 23 additions & 24 deletions

File tree

.github/workflows/changie-gen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Checkout branch that Dependabot labeled
2222
if: github.event.workflow_run.conclusion == 'success'
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
2424
with:
2525
ref: ${{ env.PR_BRANCH }}
2626
token: ${{ secrets.GITHUB_TOKEN }}
@@ -43,7 +43,7 @@ jobs:
4343
if: >-
4444
github.event.workflow_run.conclusion == 'success' &&
4545
steps.changelog_check.outputs.exists == 'false'
46-
uses: miniscruff/changie-action@v2
46+
uses: miniscruff/changie-action@6dcc2533cac0495148ed4046c438487e4dceaa23 # v2
4747
with:
4848
version: latest
4949
args: new --kind Dependency --body "${{ github.event.workflow_run.display_title }}"
@@ -59,4 +59,4 @@ jobs:
5959
git pull
6060
git add .
6161
git commit -m "Add automated changelog yaml from template"
62-
git push
62+
git push

.github/workflows/release.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v5
17+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1818
with:
1919
fetch-depth: 0
2020
submodules: 'true'
2121
token: ${{ secrets.ORG_GITHUB_TOKEN }}
2222
- name: Fetch All Tags
2323
run: git fetch --force --tags
2424
- name: Set up Go
25-
uses: actions/setup-go@v5
25+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
2626
with:
2727
go-version-file: src/go.mod
2828
cache-dependency-path: |
2929
src/go.sum
3030
- name: Cache Go modules
31-
uses: actions/cache@v4
31+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
3232
with:
3333
path: |
3434
~/.cache/go-build
@@ -38,17 +38,17 @@ jobs:
3838
${{ runner.os }}-go-
3939
- name: Import GPG Key
4040
id: import_gpg
41-
uses: crazy-max/ghaction-import-gpg@v6
41+
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6
4242
with:
4343
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
4444
passphrase: ${{ secrets.GPG_PASSPHRASE }}
4545
- name: Install Task
46-
uses: arduino/setup-task@v2
46+
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
4747
with:
4848
version: 3.x
4949
repo-token: ${{ secrets.GITHUB_TOKEN }}
5050
- name: Login to Public ECR
51-
uses: docker/login-action@v3
51+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
5252
with:
5353
registry: public.ecr.aws
5454
username: ${{ secrets.ECR_PUBLIC_AWS_ACCESS_KEY_ID }}
@@ -74,19 +74,18 @@ jobs:
7474
then
7575
echo "Skip Changie..."
7676
else
77-
go install github.com/miniscruff/changie@latest
78-
changie batch ${{ steps.version.outputs.RELEASE_VERSION }}
79-
changie merge
77+
(cd src && go tool changie batch --dir .. ${{ steps.version.outputs.RELEASE_VERSION }})
78+
(cd src && go tool changie merge --dir ..)
8079
git add .
8180
git commit -m "Cut Release '${{ steps.version.outputs.RELEASE_VERSION }}'"
8281
git push origin HEAD
8382
fi
8483
git tag -f ${{ steps.version.outputs.RELEASE_VERSION }} -m "Cut Release '${{ steps.version.outputs.RELEASE_VERSION }}'"
8584
git push -f origin refs/tags/${{ steps.version.outputs.RELEASE_VERSION }}
8685
- name: Set up QEMU
87-
uses: docker/setup-qemu-action@v3
86+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
8887
- name: Run GoReleaser
89-
uses: goreleaser/goreleaser-action@v6.1.0
88+
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
9089
with:
9190
args: release --clean --release-notes=../.changes/${{ steps.version.outputs.RELEASE_VERSION }}.md
9291
workdir: ./src

.github/workflows/reports.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v5
16+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1717
with:
1818
fetch-depth: 0
1919
submodules: 'true'
2020
- name: Snyk Test
21-
uses: snyk/actions/golang@master
21+
uses: snyk/actions/golang@9adf32b1121593767fc3c057af55b55db032dc04 # master
2222
continue-on-error: true
2323
env:
2424
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

.github/workflows/tests-integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v5
13+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1414
- name: Set up Go
15-
uses: actions/setup-go@v5
15+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
1616
with:
1717
go-version-file: go.mod
1818
cache-dependency-path: |
1919
src/go.sum
2020
- name: Install Task
21-
uses: arduino/setup-task@v2
21+
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
2222
with:
2323
version: 3.x
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v5
19+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
2020
with:
2121
fetch-depth: 0
2222
submodules: 'true'
2323
- name: Fetch all tags
2424
run: git fetch --force --tags
2525
- name: Set up Go
26-
uses: actions/setup-go@v5
26+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
2727
with:
2828
go-version-file: src/go.mod
2929
cache-dependency-path: |
3030
src/go.sum
3131
- name: Install Task
32-
uses: arduino/setup-task@v2
32+
uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
3333
with:
3434
version: 3.x
3535
repo-token: ${{ secrets.GITHUB_TOKEN }}
3636
- name: Cache Go modules
37-
uses: actions/cache@v4
37+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
3838
with:
3939
path: |
4040
~/.cache/go-build
@@ -45,7 +45,7 @@ jobs:
4545
- name: Run quality checks and test code
4646
run: task ci
4747
- name: Upload Coverage
48-
uses: codecov/codecov-action@v5
48+
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5
4949
with:
5050
files: ./src/coverage.txt
5151
fail_ci_if_error: false

0 commit comments

Comments
 (0)