Skip to content

Commit 3b47760

Browse files
authored
Merge pull request #178 from ErenAri/fix/scorecard-pin-deps
fix(security): pin all GitHub Actions + Docker images to SHA hashes
2 parents 875fa36 + 1bafd75 commit 3b47760

41 files changed

Lines changed: 183 additions & 177 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/aegis-next.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: aegis-next prototype
22

3+
permissions: read-all
4+
35
on:
46
push:
57
branches: [main, develop, 'feat/aegis-next-*']
@@ -21,7 +23,7 @@ jobs:
2123
name: aegis-next (build + test)
2224
runs-on: ubuntu-24.04
2325
steps:
24-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2527

2628
- name: Install dependencies
2729
run: |
@@ -129,7 +131,7 @@ jobs:
129131
130132
- name: Upload test results
131133
if: always()
132-
uses: actions/upload-artifact@v4
134+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
133135
with:
134136
name: aegis-next-test-results
135137
path: build/aegis_next_test.xml
@@ -139,9 +141,9 @@ jobs:
139141
name: Operator aegis-next translator
140142
runs-on: ubuntu-24.04
141143
steps:
142-
- uses: actions/checkout@v4
144+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
143145

144-
- uses: actions/setup-go@v5
146+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
145147
with:
146148
go-version-file: operator/go.mod
147149

@@ -161,10 +163,10 @@ jobs:
161163
name: Helm chart lint
162164
runs-on: ubuntu-24.04
163165
steps:
164-
- uses: actions/checkout@v4
166+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
165167

166168
- name: Set up Helm
167-
uses: azure/setup-helm@v4
169+
uses: azure/setup-helm@bf6a7d304bc2fdb57e0331155b7ebf2c504acf0a # v4
168170

169171
- name: Lint default values
170172
run: helm lint helm/aegisbpf/

.github/workflows/arm64-production.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
name: Cross-compile ARM64
3939
runs-on: ubuntu-24.04
4040
steps:
41-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4242

4343
- name: Install ARM64 cross-compilation toolchain
4444
run: |
@@ -106,7 +106,7 @@ jobs:
106106
fi
107107
108108
- name: Upload ARM64 binary
109-
uses: actions/upload-artifact@v4
109+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
110110
with:
111111
name: aegisbpf-arm64
112112
path: build-arm64/aegisbpf
@@ -118,7 +118,7 @@ jobs:
118118
runs-on: ubuntu-24.04
119119
needs: cross-compile
120120
steps:
121-
- uses: actions/checkout@v4
121+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
122122

123123
- name: Install QEMU and ARM64 libraries
124124
run: |
@@ -199,7 +199,7 @@ jobs:
199199
if: always()
200200
steps:
201201
- name: Download ARM64 binary
202-
uses: actions/download-artifact@v4
202+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
203203
with:
204204
name: aegisbpf-arm64
205205

@@ -230,7 +230,7 @@ jobs:
230230
cat report.md
231231
232232
- name: Upload report
233-
uses: actions/upload-artifact@v4
233+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
234234
with:
235235
name: arm64-validation-report
236236
path: report.md

.github/workflows/benchmark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: benchmark
1616
runs-on: ubuntu-24.04
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1919

2020
- name: Install dependencies
2121
run: |
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Store benchmark result (PR advisory)
7676
if: steps.benchmark-history.outputs.exists == 'true' && github.event_name == 'pull_request'
77-
uses: benchmark-action/github-action-benchmark@v1
77+
uses: benchmark-action/github-action-benchmark@f4c8b6b6887e53d3f07a8f026d9d75157713386b # v1
7878
with:
7979
tool: googlecpp
8080
output-file-path: benchmark.json
@@ -87,7 +87,7 @@ jobs:
8787

8888
- name: Store benchmark result (main advisory)
8989
if: steps.benchmark-history.outputs.exists == 'true' && github.event_name != 'pull_request'
90-
uses: benchmark-action/github-action-benchmark@v1
90+
uses: benchmark-action/github-action-benchmark@f4c8b6b6887e53d3f07a8f026d9d75157713386b # v1
9191
with:
9292
tool: googlecpp
9393
output-file-path: benchmark.json
@@ -106,7 +106,7 @@ jobs:
106106
107107
- name: Upload benchmark artifacts
108108
if: always()
109-
uses: actions/upload-artifact@v4
109+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
110110
with:
111111
name: benchmark-result
112112
path: |

.github/workflows/bootstrap-repo-controls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
bootstrap:
2828
runs-on: ubuntu-24.04
2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3131

3232
- name: Select token
3333
run: |

.github/workflows/bpf-compiler-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runner: ubuntu-24.04
3030
runs-on: ${{ matrix.runner }}
3131
steps:
32-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3333

3434
- name: Install LLVM ${{ matrix.clang_version }}
3535
run: |

.github/workflows/bpf-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: bpf-coverage
1616
runs-on: ubuntu-24.04
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1919

2020
- name: Install dependencies
2121
run: |
@@ -101,7 +101,7 @@ jobs:
101101
102102
- name: Upload BPF coverage summary
103103
if: steps.bpf_check.outputs.bpf_ready == 'true'
104-
uses: actions/upload-artifact@v4
104+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
105105
with:
106106
name: bpf-coverage-summary
107107
path: build/bpf_coverage_summary.json

.github/workflows/branch-protection-audit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
audit:
1414
runs-on: ubuntu-24.04
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1717

1818
- name: Audit branch protection required checks
1919
id: audit_checks
@@ -45,14 +45,14 @@ jobs:
4545
4646
- name: Upload audit log
4747
if: always()
48-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4949
with:
5050
name: branch-protection-audit
5151
path: branch-protection-audit.log
5252

5353
- name: Open or update drift issue
5454
if: steps.audit_checks.outputs.failed == 'true'
55-
uses: actions/github-script@v8
55+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
5656
with:
5757
script: |
5858
const fs = require('fs');

.github/workflows/canary.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: [self-hosted, bpf-lsm]
1111
timeout-minutes: 90
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1414

1515
- name: Install dependencies (if apt-get is available)
1616
run: |
@@ -48,7 +48,7 @@ jobs:
4848
run: sudo AEGIS_BIN=./build/aegisbpf PHASE=enforce ENFORCE_SIGNAL=term DURATION_SECONDS=300 MAX_RINGBUF_DROPS=100 MAX_RSS_GROWTH_KB=65536 MAX_EVENT_DROP_RATIO_PCT=0.1 MIN_TOTAL_DECISIONS=100 scripts/canary_gate.sh
4949

5050
- name: Upload canary artifacts
51-
uses: actions/upload-artifact@v4
51+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
5252
with:
5353
name: canary-artifacts
5454
path: artifacts/canary/

.github/workflows/check-vendored.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
check-vendored:
2323
runs-on: ubuntu-24.04
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2626

2727
- name: Run vendored dependency audit
2828
id: audit
@@ -31,14 +31,14 @@ jobs:
3131

3232
- name: Upload audit report
3333
if: always()
34-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
3535
with:
3636
name: vendored-dependency-audit
3737
path: vendored-check.log
3838

3939
- name: Open issue on failure
4040
if: steps.audit.outcome == 'failure'
41-
uses: actions/github-script@v8
41+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
4242
with:
4343
script: |
4444
const title = 'Vendored dependency review required';

0 commit comments

Comments
 (0)