Skip to content

Commit b6630ee

Browse files
[StepSecurity] ci: Harden GitHub Actions (open-telemetry#3338)
Signed-off-by: StepSecurity Bot <[email protected]> Co-authored-by: StepSecurity Bot <[email protected]>
1 parent c2a9397 commit b6630ee

File tree

10 files changed

+105
-88
lines changed

10 files changed

+105
-88
lines changed

.github/workflows/benchmark.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
name: Run OpenTelemetry-cpp benchmarks
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
with:
1818
submodules: 'recursive'
1919
- name: Mount Bazel Cache
20-
uses: actions/cache@v4
20+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
2121
env:
2222
cache-name: bazel_cache
2323
with:
@@ -35,7 +35,7 @@ jobs:
3535
mv api-benchmark_result.json benchmarks
3636
mv sdk-benchmark_result.json benchmarks
3737
mv exporters-benchmark_result.json benchmarks
38-
- uses: actions/upload-artifact@v4
38+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3939
with:
4040
name: benchmark_results
4141
path: benchmarks
@@ -47,8 +47,8 @@ jobs:
4747
name: Store benchmark result
4848
runs-on: ubuntu-latest
4949
steps:
50-
- uses: actions/checkout@v4
51-
- uses: actions/download-artifact@master
50+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
51+
- uses: actions/download-artifact@2a5974104b6d5dbdb2f9468a3e54da3bdd241578 # master
5252
with:
5353
name: benchmark_results
5454
path: benchmarks
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
cat benchmarks/*
5959
- name: Push benchmark result
60-
uses: benchmark-action/github-action-benchmark@v1
60+
uses: benchmark-action/github-action-benchmark@d48d326b4ca9ba73ca0cd0d59f108f9e02a381c7 # v1.20.4
6161
with:
6262
name: OpenTelemetry-cpp ${{ matrix.components }} Benchmark
6363
tool: 'googlecpp'

0 commit comments

Comments
 (0)