Skip to content

Commit 9cd944a

Browse files
authored
fix(security): pin all GitHub Actions to SHA digests (#810)
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent e6d6be9 commit 9cd944a

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/pr-checks.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
runs-on: ubuntu-24.04
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2626

2727
- name: Install Go
28-
uses: actions/setup-go@v5
28+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
2929
with:
3030
go-version-file: 'go.mod'
3131

@@ -35,7 +35,7 @@ jobs:
3535
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
3636
3737
- name: Module cache
38-
uses: actions/cache@v4
38+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
3939
env:
4040
cache-name: go-mod-cache
4141
with:
@@ -49,7 +49,7 @@ jobs:
4949
run: make unit-test
5050

5151
- name: Upload coverage to Codecov
52-
uses: codecov/codecov-action@v4
52+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
5353
with:
5454
flags: unit-tests
5555

@@ -59,17 +59,17 @@ jobs:
5959
runs-on: ubuntu-24.04
6060
steps:
6161
- name: Checkout
62-
uses: actions/checkout@v4
62+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
6363

6464
- name: Set up QEMU
65-
uses: docker/setup-qemu-action@v3
65+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
6666
with:
6767
platforms: all
6868
- name: Set up Docker Buildx
6969
id: buildx
70-
uses: docker/setup-buildx-action@v3
70+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
7171
- name: Build
72-
uses: docker/build-push-action@v6
72+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
7373
with:
7474
builder: ${{ steps.buildx.outputs.name }}
7575
context: .
@@ -78,7 +78,7 @@ jobs:
7878
cache-from: type=gha,scope=${{ github.ref_name }}-ofo
7979
cache-to: type=gha,scope=${{ github.ref_name }}-ofo
8080
- name: Run Trivy vulnerability scanner
81-
uses: aquasecurity/trivy-action@0.29.0
81+
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
8282
with:
8383
input: ${{ github.workspace }}/open-feature-operator-local.tar
8484
format: "sarif"
@@ -88,11 +88,11 @@ jobs:
8888
# use an alternative trivvy db to avoid rate limits
8989
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2,ghcr.io/aquasecurity/trivy-db:2
9090
- name: Upload Trivy scan results to GitHub Security tab
91-
uses: github/codeql-action/upload-sarif@v2
91+
uses: github/codeql-action/upload-sarif@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2
9292
with:
9393
sarif_file: "trivy-results.sarif"
9494
- name: Upload image as artifact
95-
uses: actions/upload-artifact@v4
95+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
9696
with:
9797
name: open-feature-operator-local-${{ github.sha }}
9898
path: ${{ github.workspace }}/open-feature-operator-local.tar

renovate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
44
"config:base",
5-
"group:recommended"
5+
"group:recommended",
6+
"helpers:pinGitHubActionDigests"
67
],
78
"ignorePaths": [],
89
"semanticCommits": "enabled",

0 commit comments

Comments
 (0)