Skip to content

Commit a7a8041

Browse files
ci: pin third-party GitHub Actions to verified release SHAs
1 parent 3a19f97 commit a7a8041

4 files changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/broken-links-checker.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,24 @@ jobs:
2525
- name: Get changed markdown files (PR only)
2626
id: changed-markdown-files
2727
if: github.event_name == 'pull_request'
28-
uses: tj-actions/changed-files@e0021407031f5be11a464abee9a0776171c79891 # v46
29-
with:
30-
files: |
31-
**/*.md
28+
env:
29+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
30+
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
31+
run: |
32+
changed_files=$(git diff --name-only --diff-filter=ACMR "$BASE_SHA" "$HEAD_SHA" -- '*.md' | tr '\n' ' ' | sed 's/ *$//')
33+
if [ -n "$changed_files" ]; then
34+
echo "any_changed=true" >> "$GITHUB_OUTPUT"
35+
else
36+
echo "any_changed=false" >> "$GITHUB_OUTPUT"
37+
fi
38+
echo "all_changed_files=$changed_files" >> "$GITHUB_OUTPUT"
3239
3340
3441
# For PR: Check broken links only in changed files
3542
- name: Check Broken Links in Changed Markdown Files
3643
id: lychee-check-pr
3744
if: github.event_name == 'pull_request' && steps.changed-markdown-files.outputs.any_changed == 'true'
38-
uses: lycheeverse/lychee-action@v2.7.0
45+
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
3946
with:
4047
args: >
4148
--verbose --no-progress --exclude ^https?://
@@ -48,7 +55,7 @@ jobs:
4855
- name: Check Broken Links in All Markdown Files in Entire Repo (Manual Trigger)
4956
id: lychee-check-manual
5057
if: github.event_name == 'workflow_dispatch'
51-
uses: lycheeverse/lychee-action@v2.7.0
58+
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
5259
with:
5360
args: >
5461
--verbose --no-progress --exclude ^https?://

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
touch site/.nojekyll # Disable Jekyll processing
3939
4040
- name: Deploy to GitHub Pages
41-
uses: peaceiris/actions-gh-pages@v4
41+
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
4242
with:
4343
github_token: ${{ secrets.GITHUB_TOKEN }}
4444
publish_dir: docs/workshop/site

.github/workflows/pr-title-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
runs-on: ubuntu-latest
2020
if: ${{ github.event_name != 'merge_group' }}
2121
steps:
22-
- uses: amannn/action-semantic-pull-request@v6
22+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
github.event_name == 'pull_request' &&
116116
github.event.pull_request.head.repo.fork == false &&
117117
env.skip_backend_tests == 'false'
118-
uses: MishaKav/pytest-coverage-comment@26f986d2599c288bb62f623d29c2da98609e9cd4 # v1.6.0
118+
uses: MishaKav/pytest-coverage-comment@e48ae95fa406cefacc7fbdd79949122795569961 # v1.8.0
119119
with:
120120
pytest-xml-coverage-path: coverage.xml
121121
junitxml-path: pytest.xml

0 commit comments

Comments
 (0)