Skip to content

Commit ceba0a3

Browse files
committed
Pin GitHub Actions to verified SHAs
Replaces mutable external GitHub Actions refs with verified full-length commit SHAs while preserving the existing referenced releases and branch behavior. Inline comments keep the original version context visible for reviewers.
1 parent 9220c06 commit ceba0a3

5 files changed

Lines changed: 24 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1515

1616
- name: Set up Python
17-
uses: actions/setup-python@v5
17+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
1818
with:
1919
python-version: '3.12'
2020
cache: 'pip'
@@ -40,10 +40,10 @@ jobs:
4040
os: [ubuntu-latest, windows-latest, macos-latest]
4141

4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4444

4545
- name: Set up Python ${{ matrix.python-version }}
46-
uses: actions/setup-python@v5
46+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949
cache: 'pip'
@@ -56,7 +56,7 @@ jobs:
5656
run: python -m pytest tests/unit/ -v --cov=nutrient_dws --cov-report=xml --cov-report=term
5757

5858
- name: Upload coverage to Codecov
59-
uses: codecov/codecov-action@v4
59+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
6060
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
6161
with:
6262
files: ./coverage.xml
@@ -68,10 +68,10 @@ jobs:
6868
needs: [lint-and-type-check, unit-tests]
6969

7070
steps:
71-
- uses: actions/checkout@v4
71+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
7272

7373
- name: Set up Python
74-
uses: actions/setup-python@v5
74+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
7575
with:
7676
python-version: '3.12'
7777
cache: 'pip'

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
python-version: ['3.10', '3.11', '3.12']
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2020

2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v5
22+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
cache: 'pip'

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
# Use current branch/tag
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2020

2121
- name: Set up Python
22-
uses: actions/setup-python@v5
22+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2323
with:
2424
python-version: '3.10'
2525

@@ -32,4 +32,4 @@ jobs:
3232
run: python -m build
3333

3434
- name: Publish to PyPI
35-
uses: pypa/gh-action-pypi-publish@release/v1
35+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0

.github/workflows/scheduled-integration-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1515

1616
- name: Set up Python
17-
uses: actions/setup-python@v5
17+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
1818
with:
1919
python-version: '3.12'
2020
cache: 'pip'
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: Create issue if tests fail
7676
if: failure() && steps.test-run.outcome == 'failure'
77-
uses: actions/github-script@v7
77+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
7878
with:
7979
script: |
8080
const date = new Date().toISOString().split('T')[0];
@@ -115,7 +115,7 @@ jobs:
115115
}
116116
117117
- name: Upload test artifacts
118-
uses: actions/upload-artifact@v4
118+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
119119
if: always()
120120
with:
121121
name: scheduled-integration-results-${{ github.run_number }}
@@ -126,7 +126,7 @@ jobs:
126126

127127
- name: Notify on success after previous failure
128128
if: success() && steps.test-run.outcome == 'success'
129-
uses: actions/github-script@v7
129+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
130130
with:
131131
script: |
132132
// Close any open integration failure issues

.github/workflows/security.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
security-events: write
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Run Gitleaks
24-
uses: gitleaks/gitleaks-action@v2
24+
uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
@@ -55,10 +55,10 @@ jobs:
5555
runs-on: ubuntu-latest
5656

5757
steps:
58-
- uses: actions/checkout@v4
58+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
5959

6060
- name: Set up Python
61-
uses: actions/setup-python@v5
61+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
6262
with:
6363
python-version: '3.12'
6464
cache: 'pip'
@@ -89,7 +89,7 @@ jobs:
8989
continue-on-error: true
9090

9191
- name: Upload security scan results
92-
uses: actions/upload-artifact@v4
92+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
9393
if: always()
9494
with:
9595
name: security-reports-${{ github.run_number }}
@@ -109,10 +109,10 @@ jobs:
109109
runs-on: ubuntu-latest
110110

111111
steps:
112-
- uses: actions/checkout@v4
112+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
113113

114114
- name: Set up Python
115-
uses: actions/setup-python@v5
115+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
116116
with:
117117
python-version: '3.12'
118118
cache: 'pip'

0 commit comments

Comments
 (0)