Skip to content

Commit e69fedd

Browse files
committed
chore: lock GitHub Actions to commit SHAs for supply-chain security
1 parent 4c3c694 commit e69fedd

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/commit-check.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
contents: read
1717
pull-requests: write
1818
steps:
19-
- uses: actions/checkout@v7.0.1
19+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2020
with:
2121
fetch-depth: 0 # Required for merge-base checks
2222
- uses: ./ # self test

‎.github/workflows/coverage.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
coverage:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v7.0.1
17-
- uses: actions/setup-python@v5
16+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
17+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
1818
with:
1919
python-version: "3.13"
2020
- name: Install dependencies
@@ -25,9 +25,9 @@ jobs:
2525
run: |
2626
pytest --cov=main --cov-report=xml --cov-report=term-missing main_test.py
2727
- name: Upload coverage to Codecov
28-
uses: codecov/codecov-action@v7
28+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
2929
with:
3030
files: ./coverage.xml
3131
flags: unittests
3232
name: codecov-umbrella
33-
fail_ci_if_error: true
33+
fail_ci_if_error: ${{ github.event_name == 'push' }}

0 commit comments

Comments
 (0)