Skip to content

Commit 0336c83

Browse files
committed
chore(ci): pin actions by commit hash
Protect the repository from malicious retroactive tag modification. Signed-off-by: Krisztian Szilvasi <34309983+kr-t@users.noreply.github.com>
1 parent adaa6fb commit 0336c83

7 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/devcontainer-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Clean workspace
2727
run: find . -name . -o -prune -exec rm -rf -- {} +
2828

29-
- uses: actions/checkout@v6
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3030
with:
3131
fetch-depth: 0
3232

@@ -60,7 +60,7 @@ jobs:
6060

6161
steps:
6262
- name: Checkout the code
63-
uses: actions/checkout@v6
63+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
6464

6565
- name: Set up Docker Buildx
6666
uses: docker/setup-buildx-action@v4

.github/workflows/devcontainer-zephyr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Clean workspace
2727
run: find . -name . -o -prune -exec rm -rf -- {} +
2828

29-
- uses: actions/checkout@v6
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3030
with:
3131
fetch-depth: 0
3232

@@ -54,7 +54,7 @@ jobs:
5454

5555
steps:
5656
- name: Checkout the code
57-
uses: actions/checkout@v6
57+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5858

5959
- name: Set up Docker Buildx
6060
uses: docker/setup-buildx-action@v4

.github/workflows/formatting-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: find . -name . -o -prune -exec rm -rf -- {} +
2929

3030
- name: Checkout
31-
uses: actions/checkout@v6
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3232
with:
3333
fetch-depth: 0
3434

.github/workflows/hardware-bu585.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
find . -name . -o -prune -exec rm -rf -- {} +
4949
5050
- name: Checkout
51-
uses: actions/checkout@v6
51+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5252
with:
5353
path: ocre-runtime
5454
submodules: recursive
@@ -72,7 +72,7 @@ jobs:
7272

7373
steps:
7474
- name: Checkout
75-
uses: actions/checkout@v6
75+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7676

7777
- name: Run mini sample Test Case
7878
run: |
@@ -102,7 +102,7 @@ jobs:
102102
find . -name . -o -prune -exec rm -rf -- {} +
103103
104104
- name: Checkout
105-
uses: actions/checkout@v6
105+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
106106
with:
107107
path: ocre-runtime
108108
submodules: recursive
@@ -126,7 +126,7 @@ jobs:
126126

127127
steps:
128128
- name: Checkout
129-
uses: actions/checkout@v6
129+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
130130

131131
- name: Run Demo Sample Test Case
132132
run: |
@@ -156,7 +156,7 @@ jobs:
156156
find . -name . -o -prune -exec rm -rf -- {} +
157157
158158
- name: Checkout
159-
uses: actions/checkout@v6
159+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
160160
with:
161161
path: ocre-runtime
162162
submodules: recursive
@@ -188,7 +188,7 @@ jobs:
188188

189189
steps:
190190
- name: Checkout
191-
uses: actions/checkout@v6
191+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
192192

193193
- name: Supervisor ${{ matrix.test.name }} Testcase
194194
run: |

.github/workflows/linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: find . -name . -o -prune -exec rm -rf -- {} +
2929

3030
- name: Checkout
31-
uses: actions/checkout@v6
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3232
with:
3333
submodules: true
3434

@@ -67,7 +67,7 @@ jobs:
6767
run: make coverage report.md
6868

6969
- name: Upload coverage report
70-
uses: actions/upload-artifact@v7
70+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
7171
with:
7272
name: ocre-coverage
7373
include-hidden-files: true

.github/workflows/zephyr-systests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: find . -name . -o -prune -exec rm -rf -- {} +
3737

3838
- name: Checkout
39-
uses: actions/checkout@v6
39+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4040
with:
4141
path: ocre-runtime
4242
submodules: true

.github/workflows/zephyr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: find . -name . -o -prune -exec rm -rf -- {} +
3939

4040
- name: Checkout
41-
uses: actions/checkout@v6
41+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4242
with:
4343
path: ocre-runtime
4444
submodules: true
@@ -67,7 +67,7 @@ jobs:
6767
echo "BOARD_NAME=$(printf "%s\n" "$BOARD" | tr / _)" >> $GITHUB_ENV
6868
6969
- name: Upload build artifacts
70-
uses: actions/upload-artifact@v7
70+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
7171
with:
7272
name: ocre-zephyr-${{ env.BOARD_NAME }}-${{ matrix.app }}
7373
include-hidden-files: true
@@ -99,7 +99,7 @@ jobs:
9999
echo "BOARD_NAME=$(printf "%s\n" "$BOARD" | tr / _)" >> $GITHUB_ENV
100100
101101
- name: Download build artifacts
102-
uses: actions/download-artifact@v8
102+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8
103103
with:
104104
name: ocre-zephyr-${{ env.BOARD_NAME }}-${{ matrix.app }}
105105

0 commit comments

Comments
 (0)