Skip to content

Commit e6e7a6b

Browse files
authored
chore: pin GitHub Actions versions to commit hashes (#328)
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 ceaab13 commit e6e7a6b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/project_add.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
if: ${{ github.actor != 'dependabot[bot]' }}
2121
steps:
22-
- uses: actions/[email protected]
22+
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
2323
with:
2424
project-url: https://github.com/orgs/MeltanoLabs/projects/3
2525
github-token: ${{ secrets.MELTYBOT_PROJECT_ADD_PAT }}

.github/workflows/release_workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
fetch-depth: 0
2020
- name: Set up Python
21-
uses: actions/setup-python@v5
21+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2222
with:
2323
python-version: '3.10'
2424
- name: Install dependencies
@@ -32,12 +32,12 @@ jobs:
3232
poetry dynamic-versioning --no-cache
3333
poetry build
3434
- name: Upload wheel to release
35-
uses: svenstaro/upload-release-action@v2
35+
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # 2.9.0
3636
with:
3737
repo_token: ${{ secrets.GITHUB_TOKEN }}
3838
file: dist/*.whl
3939
tag: ${{ github.ref }}
4040
overwrite: true
4141
file_glob: true
4242
- name: Publish
43-
uses: pypa/[email protected]
43+
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ jobs:
5555
- python-version: "3.12"
5656
os: "windows-latest"
5757
steps:
58-
- uses: actions/checkout@v4
58+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5959
- name: Set up Python ${{ matrix.python-version }}
60-
uses: actions/setup-python@v5
60+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
6161
with:
6262
python-version: ${{ matrix.python-version }}
6363
- name: Install Poetry
@@ -70,7 +70,7 @@ jobs:
7070
- name: Test with pytest
7171
run: |
7272
poetry run pytest -n auto
73-
- uses: actions/upload-artifact@v4
73+
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
7474
with:
7575
name: snowflake-logs-py${{ matrix.python-version }}-${{ matrix.os }}
7676
path: snowflake.log

0 commit comments

Comments
 (0)