Skip to content

Commit f334238

Browse files
ci: pin third-party GitHub Actions to verified release SHAs
1 parent fb94171 commit f334238

3 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
@@ -24,17 +24,24 @@ jobs:
2424
- name: Get changed markdown files (PR only)
2525
id: changed-markdown-files
2626
if: github.event_name == 'pull_request'
27-
uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # v47.0.5
28-
with:
29-
files: |
30-
**/*.md
27+
env:
28+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
29+
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
30+
run: |
31+
changed_files=$(git diff --name-only --diff-filter=ACMR "$BASE_SHA" "$HEAD_SHA" -- '*.md' | tr '\n' ' ' | sed 's/ *$//')
32+
if [ -n "$changed_files" ]; then
33+
echo "any_changed=true" >> "$GITHUB_OUTPUT"
34+
else
35+
echo "any_changed=false" >> "$GITHUB_OUTPUT"
36+
fi
37+
echo "all_changed_files=$changed_files" >> "$GITHUB_OUTPUT"
3138
3239
3340
# For PR: Check broken links only in changed files
3441
- name: Check Broken Links in Changed Markdown Files
3542
id: lychee-check-pr
3643
if: github.event_name == 'pull_request' && steps.changed-markdown-files.outputs.any_changed == 'true'
37-
uses: lycheeverse/lychee-action@v2.8.0
44+
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
3845
with:
3946
args: >
4047
--verbose --no-progress --exclude ^https?:// --exclude ^mailto:
@@ -47,7 +54,7 @@ jobs:
4754
- name: Check Broken Links in All Markdown Files in Entire Repo (Manual Trigger)
4855
id: lychee-check-manual
4956
if: github.event_name == 'workflow_dispatch'
50-
uses: lycheeverse/lychee-action@v2.8.0
57+
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
5158
with:
5259
args: >
5360
--verbose --no-progress --exclude ^https?:// --exclude ^mailto:

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

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

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
github.event_name == 'pull_request' &&
106106
github.event.pull_request.head.repo.fork == false &&
107107
env.skip_backend_tests == 'false'
108-
uses: MishaKav/pytest-coverage-comment@26f986d2599c288bb62f623d29c2da98609e9cd4 # v1.6.0
108+
uses: MishaKav/pytest-coverage-comment@e48ae95fa406cefacc7fbdd79949122795569961 # v1.8.0
109109
with:
110110
pytest-xml-coverage-path: src/backend-api/reports/coverage.xml
111111
junitxml-path: src/backend-api/pytest.xml
@@ -180,7 +180,7 @@ jobs:
180180
github.event_name == 'pull_request' &&
181181
github.event.pull_request.head.repo.fork == false &&
182182
env.skip_processor_tests == 'false'
183-
uses: MishaKav/pytest-coverage-comment@26f986d2599c288bb62f623d29c2da98609e9cd4 # v1.6.0
183+
uses: MishaKav/pytest-coverage-comment@e48ae95fa406cefacc7fbdd79949122795569961 # v1.8.0
184184
with:
185185
pytest-xml-coverage-path: src/processor/reports/coverage.xml
186186
junitxml-path: src/processor/pytest.xml

0 commit comments

Comments
 (0)