Skip to content

Commit 0dc2ef4

Browse files
authored
chore: pin GitHub Actions versions to commit hashes (#140)
This will help prevent attacks such as [this one](https://semgrep.dev/blog/2025/popular-github-action-tj-actionschanged-files-is-compromised/). Dependabot is able to update these versions automatically, and it will preserve the readable version comments.
1 parent 580cc13 commit 0dc2ef4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/main_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
TAP_UNIVERSAL_FILE_FILE_REGEX: ^.*airtravel\.csv$
2020
TAP_UNIVERSAL_FILE_PROTOCOL: s3
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v5
24+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install Poetry

.github/workflows/s3_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
TAP_UNIVERSAL_FILE_FILE_REGEX: ^.*airtravel\.csv$
2626
TAP_UNIVERSAL_FILE_PROTOCOL: s3
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2929
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v5
30+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
3131
with:
3232
python-version: ${{ matrix.python-version }}
3333
- name: Install Poetry
@@ -41,4 +41,4 @@ jobs:
4141
poetry install --extras=s3
4242
- name: Test with pytest (requires repo secrets)
4343
run: | # Only run S3 tests, i.e. those that weren't already covered by the standard workflow run.
44-
poetry run pytest -k 'test_s3_execution'
44+
poetry run pytest -k 'test_s3_execution'

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
AWS_SECRET_ACCESS_KEY: NoSecretsNeeded
2323
TAP_UNIVERSAL_FILE_PROTOCOL: file
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
- name: Install Poetry

0 commit comments

Comments
 (0)