Skip to content

Commit 10b694f

Browse files
committed
action: pin GitHub actions via SHA
There were several issues with CI actions and moved tags on GitHub in the past, therefore a lot of repositories activated the function to enforce fulllength sha pins for actions. This also applies recursively, and this action does not pin used actions itself, making it not usable in a lot of other repos. To improve adoption and make the action also more deterministic, we pin the versions of used actions in this commit. Signed-off-by: Stefan Kraus <[email protected]>
1 parent 712109c commit 10b694f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ runs:
187187
echo "SETUP_OPT=${setup_opt}" >> $GITHUB_ENV
188188
189189
- name: Cache Python packages
190-
uses: actions/cache@v4
190+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
191191
with:
192192
path: ${{ env.PIP_CACHE_PATH }}
193193
key: pip-${{ runner.os }}-${{ hashFiles(format('{0}/zephyr/scripts/requirements*.txt', inputs.base-path)) }}
@@ -202,7 +202,7 @@ runs:
202202
203203
- name: Cache Zephyr SDK
204204
id: cache-toolchain
205-
uses: actions/cache@v4
205+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
206206
with:
207207
path: ${{ inputs.base-path }}/zephyr-sdk
208208
key: ${{ env.SDK_FILE }}-${{ github.event.repository.name }}-${{ inputs.toolchains }}
@@ -237,7 +237,7 @@ runs:
237237
238238
- name: Cache ccache data
239239
if: inputs.enable-ccache == 'true' && runner.os != 'Windows'
240-
uses: actions/cache@v4
240+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
241241
with:
242242
path: ${{ env.CCACHE_DIR }}
243243
key: ccache-${{ inputs.ccache-cache-key }}-${{ env.CCACHE_TIMESTAMP }}

0 commit comments

Comments
 (0)