Skip to content

Commit bc36c69

Browse files
authored
[StepSecurity] Harden GibHub Actions, part 2 (open-telemetry#3340)
1 parent b6630ee commit bc36c69

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
51-
- uses: actions/download-artifact@2a5974104b6d5dbdb2f9468a3e54da3bdd241578 # master
51+
- uses: actions/download-artifact@2a5974104b6d5dbdb2f9468a3e54da3bdd241578 # v4.2.1
5252
with:
5353
name: benchmark_results
5454
path: benchmarks

.github/workflows/clang-tidy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
clang-tidy:
1111
runs-on: ubuntu-24.04
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414
with:
1515
submodules: recursive
1616

@@ -68,7 +68,7 @@ jobs:
6868
cmake --build build --target opentelemetry_proto
6969
jq -r .[].file build/compile_commands.json | grep -vE '/(generated|third_party)/' | xargs -P $(nproc) -n 1 clang-tidy --quiet -p build 2>&1 | tee -a clang-tidy.log
7070
71-
- uses: actions/upload-artifact@v4
71+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7272
with:
7373
name: Logs (clang-tidy)
7474
path: ./clang-tidy.log

.github/workflows/iwyu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
iwyu:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
submodules: 'recursive'
2020

@@ -64,7 +64,7 @@ jobs:
6464
cd build
6565
make -k 2>&1 | tee -a iwyu.log
6666
67-
- uses: actions/upload-artifact@v4
67+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6868
if: success() || failure()
6969
with:
7070
name: Logs (include-what-you-use)

0 commit comments

Comments
 (0)