Skip to content

Commit fbf9846

Browse files
Pin actions to full-length commit SHA
1 parent ba724cc commit fbf9846

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Mark workspace as safe
2424
run: |
2525
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
with:
2828
set-safe-directory: false
2929
- name: Install non-pip dependencies of the image cache tester library
@@ -67,15 +67,15 @@ jobs:
6767
run: |
6868
python3 -m nbqa mypy .
6969
- name: Check for stray outputs, counts and metadata in ipynb files
70-
uses: RBniCS/check-jupyter-metadata-action@main
70+
uses: RBniCS/check-jupyter-metadata-action@6df653e5d45f7620d888c6a1bd85d07b4f903045 # v1.0.0
7171
with:
7272
pattern: "**/*.ipynb"
7373
- name: Run basic notebooks tests
7474
run: |
7575
COVERAGE_FILE=.coverage_notebooks_basic python3 -m coverage run --source=image_cache_tester -m pytest --coverage-run-allow tests/notebooks/basic
7676
- name: Upload notebooks logs as an artifact in case of failure
7777
if: failure() || cancelled()
78-
uses: actions/upload-artifact@v7
78+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
7979
with:
8080
name: "notebooks-logs"
8181
path: |
@@ -114,7 +114,7 @@ jobs:
114114
if: github.repository == 'viskex/image_cache_tester' && github.ref == 'refs/heads/main' && github.event_name == 'schedule'
115115
steps:
116116
- name: Warn if scheduled workflow is about to be disabled
117-
uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@main
117+
uses: fem-on-colab/warn-workflow-about-to-be-disabled-action@58c6022d9aeb22accfa8df9bf5b58c3d8867208c # v1.0.0
118118
with:
119119
workflow-filename: ci.yml
120120
days-elapsed: 50

.github/workflows/workflow_call.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
echo "branch=${BRANCH}" >> ${GITHUB_OUTPUT}
6060
shell: bash
6161
- name: Clone image cache tester library
62-
uses: actions/checkout@v6
62+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6363
with:
6464
repository: viskex/image_cache_tester
6565
ref: ${{ steps.image_cache_tester_library_branch.outputs.branch }}
@@ -91,7 +91,7 @@ jobs:
9191
rm -rf _image_cache_tester_library
9292
shell: bash
9393
- name: Clone notebook repository on notebook branch
94-
uses: actions/checkout@v6
94+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9595
with:
9696
repository: "${{ inputs.notebook_repository }}"
9797
ref: "${{ inputs.notebook_branch }}"
@@ -100,7 +100,7 @@ jobs:
100100
run: |
101101
git config --global --add safe.directory _notebook_repository/${{ inputs.notebook_directory }}/.image_cache
102102
- name: Clone notebook repository on image cache branch
103-
uses: actions/checkout@v6
103+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
104104
with:
105105
repository: "${{ inputs.notebook_repository }}"
106106
token: "${{ secrets.REPO_ACCESS_TOKEN || github.token }}"
@@ -145,7 +145,7 @@ jobs:
145145
working-directory: _notebook_repository
146146
- name: Upload notebooks logs as an artifact in case of failure
147147
if: failure() || cancelled()
148-
uses: actions/upload-artifact@v7
148+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
149149
with:
150150
name: "image-cache-test-logs-${{ matrix.backend }}"
151151
path: |

0 commit comments

Comments
 (0)