55 - main
66
77permissions :
8- contents : write
9- deployments : write
8+ contents : read
109
1110jobs :
1211 benchmark :
1312 name : Run OpenTelemetry-cpp benchmarks
1413 runs-on : ubuntu-latest
1514 steps :
16- - uses : actions/checkout@v4
15+ - name : Harden the runner (Audit all outbound calls)
16+ uses : step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
17+ with :
18+ egress-policy : audit
19+
20+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1721 with :
1822 submodules : ' recursive'
1923 - name : Mount Bazel Cache
20- uses : actions/cache@v4
24+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
2125 env :
2226 cache-name : bazel_cache
2327 with :
@@ -35,20 +39,28 @@ jobs:
3539 mv api-benchmark_result.json benchmarks
3640 mv sdk-benchmark_result.json benchmarks
3741 mv exporters-benchmark_result.json benchmarks
38- - uses : actions/upload-artifact@v4
42+ - uses : actions/upload-artifact@6027e3dd177782cd8ab9af838c04fd81a07f1d47 # main March 2025
3943 with :
4044 name : benchmark_results
4145 path : benchmarks
4246 store_benchmark :
4347 needs : benchmark
48+ permissions :
49+ contents : write
50+ deployments : write
4451 strategy :
4552 matrix :
4653 components : ["api", "sdk", "exporters"]
4754 name : Store benchmark result
4855 runs-on : ubuntu-latest
4956 steps :
50- - uses : actions/checkout@v4
51- - uses : actions/download-artifact@master
57+ - name : Harden the runner (Audit all outbound calls)
58+ uses : step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
59+ with :
60+ egress-policy : audit
61+
62+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
63+ - uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # main March 2025
5264 with :
5365 name : benchmark_results
5466 path : benchmarks
5769 run : |
5870 cat benchmarks/*
5971 - name : Push benchmark result
60- uses : benchmark-action/github-action-benchmark@v1
72+ uses : benchmark-action/github-action-benchmark@d48d326b4ca9ba73ca0cd0d59f108f9e02a381c7 # v1.20.4
6173 with :
6274 name : OpenTelemetry-cpp ${{ matrix.components }} Benchmark
6375 tool : ' googlecpp'
0 commit comments