Skip to content

Commit 58aff49

Browse files
digests for GHA actions (#229)
Signed-off-by: Mathieu Benoit <[email protected]>
1 parent 71f63a2 commit 58aff49

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
with:
1717
fetch-depth: 0
1818
- name: Fetch all tags
1919
run: git fetch --force --tags
2020
- name: Set up Go
21-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
2222
with:
2323
go-version-file: 'go.mod'
2424
- name: Run Go Vet
2525
run: go vet ./...
2626
- name: Run Go Tests
2727
run: go test ./... -cover -race
2828
- name: Build binary
29-
uses: goreleaser/goreleaser-action@v6
29+
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
3030
with:
3131
distribution: goreleaser
3232
version: '~> v2'
3333
args: build --snapshot
3434
- name: Install license check tool
35-
run: go install github.com/google/addlicense@v1
35+
run: go install github.com/google/addlicense@dc31ac9ffcca99c9457226366135701794b128c0
3636
- name: Check licenses
3737
run: addlicense -l apache -check -v -ignore '**/*.yaml' -c Humanitec ./cmd ./internal/
3838
- name: Build docker image
39-
uses: docker/build-push-action@v6
39+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
4040
with:
4141
context: .
4242
push: false

.github/workflows/release.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ jobs:
1414
contents: write
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
fetch-depth: 0
2020
- name: Fetch all tags
2121
run: git fetch --force --tags
2222
- name: Set up Go
23-
uses: actions/setup-go@v5
23+
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
2424
with:
2525
go-version-file: 'go.mod'
2626
- name: Install Cosign
27-
uses: sigstore/cosign-installer@v3
27+
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
2828
- name: Run GoReleaser
29-
uses: goreleaser/goreleaser-action@v6
29+
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
3030
with:
3131
distribution: goreleaser
3232
version: '~> v2'
@@ -35,16 +35,16 @@ jobs:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
3737
- name: Set up Docker Buildx
38-
uses: docker/setup-buildx-action@v3
38+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
3939
- name: Login to GitHub Container Registry
40-
uses: docker/login-action@v3
40+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
4141
with:
4242
registry: ghcr.io
4343
username: ${{ github.actor }}
4444
password: ${{ secrets.GITHUB_TOKEN }}
4545
- name: Build and push docker image
4646
id: build-push-container
47-
uses: docker/build-push-action@v6
47+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
4848
with:
4949
context: .
5050
platforms: linux/amd64,linux/arm64

.github/workflows/scorecard.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232

3333
steps:
3434
- name: "Checkout code"
35-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
35+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3636
with:
3737
persist-credentials: false
3838

3939
- name: "Run analysis"
40-
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
40+
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
4141
with:
4242
results_file: results.sarif
4343
results_format: sarif
@@ -59,7 +59,7 @@ jobs:
5959
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6060
# format to the repository Actions tab.
6161
- name: "Upload artifact"
62-
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
62+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
6363
with:
6464
name: SARIF file
6565
path: results.sarif
@@ -68,6 +68,6 @@ jobs:
6868
# Upload the results to GitHub's code scanning dashboard (optional).
6969
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7070
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@v3
71+
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
7272
with:
7373
sarif_file: results.sarif

0 commit comments

Comments
 (0)