Skip to content

Commit 1439924

Browse files
authored
🔒 Pin GitHub actions by commit SHA (#172)
1 parent 09380b8 commit 1439924

File tree

9 files changed

+31
-31
lines changed

9 files changed

+31
-31
lines changed

‎.github/workflows/issue-manager.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
env:
2828
GITHUB_CONTEXT: ${{ toJson(github) }}
2929
run: echo "$GITHUB_CONTEXT"
30-
- uses: tiangolo/issue-manager@0.6.0
30+
- uses: tiangolo/issue-manager@2fb3484ec9279485df8659e8ec73de262431737d # 0.6.0
3131
with:
3232
token: ${{ secrets.GITHUB_TOKEN }}
3333
config: >

‎.github/workflows/labeler.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
pull-requests: write
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/labeler@v6
19+
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
2020
# Run this after labeler applied labels
2121
check-labels:
2222
needs:
@@ -25,7 +25,7 @@ jobs:
2525
pull-requests: read
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: docker://agilepathway/pull-request-label-checker:latest
28+
- uses: agilepathway/label-checker@c3d16ad512e7cea5961df85ff2486bb774caf3c5 # v1.6.65
2929
with:
3030
one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal
3131
repo_token: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/latest-changes.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ jobs:
2424
env:
2525
GITHUB_CONTEXT: ${{ toJson(github) }}
2626
run: echo "$GITHUB_CONTEXT"
27-
- uses: actions/checkout@v6
27+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2828
with:
2929
# To allow latest-changes to commit to the main branch
3030
token: ${{ secrets.LATEST_CHANGES }}
3131
# Allow debugging with tmate
3232
- name: Setup tmate session
33-
uses: mxschmitt/action-tmate@v3
33+
uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 # v3.23
3434
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
3535
with:
3636
limit-access-to-actor: true
37-
- uses: tiangolo/latest-changes@0.4.1
37+
- uses: tiangolo/latest-changes@c9d329cb147f0ddf4fb631214e3f838ff17ccbbd # 0.4.1
3838
with:
3939
token: ${{ secrets.GITHUB_TOKEN }}
4040
latest_changes_file: release-notes.md

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
env:
1919
GITHUB_CONTEXT: ${{ toJson(github) }}
2020
run: echo "$GITHUB_CONTEXT"
21-
- uses: actions/checkout@v6
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
name: Checkout PR for own repo
2323
if: env.HAS_SECRETS == 'true'
2424
with:
@@ -30,19 +30,19 @@ jobs:
3030
# A token other than the default GITHUB_TOKEN is needed to be able to trigger CI
3131
token: ${{ secrets.PRE_COMMIT }}
3232
# pre-commit lite ci needs the default checkout configs to work
33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
name: Checkout PR for fork
3535
if: env.HAS_SECRETS == 'false'
3636
with:
3737
# To be able to commit it needs the head branch of the PR, the remote one
3838
ref: ${{ github.event.pull_request.head.sha }}
3939
fetch-depth: 0
4040
- name: Set up Python
41-
uses: actions/setup-python@v6
41+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4242
with:
4343
python-version: "3.14"
4444
- name: Setup uv
45-
uses: astral-sh/setup-uv@v7
45+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
4646
with:
4747
cache-dependency-glob: |
4848
pyproject.toml
@@ -63,7 +63,7 @@ jobs:
6363
git commit -m "🎨 Auto format"
6464
git push
6565
fi
66-
- uses: pre-commit-ci/lite-action@v1.1.0
66+
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
6767
if: env.HAS_SECRETS == 'false'
6868
with:
6969
msg: 🎨 Auto format
@@ -83,6 +83,6 @@ jobs:
8383
GITHUB_CONTEXT: ${{ toJson(github) }}
8484
run: echo "$GITHUB_CONTEXT"
8585
- name: Decide whether the needed jobs succeeded or failed
86-
uses: re-actors/alls-green@release/v1
86+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
8787
with:
8888
jobs: ${{ toJSON(needs) }}

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
env:
1717
GITHUB_CONTEXT: ${{ toJson(github) }}
1818
run: echo "$GITHUB_CONTEXT"
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020
- name: Set up Python
21-
uses: actions/setup-python@v6
21+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2222
with:
2323
python-version-file: "pyproject.toml"
2424
- name: Install uv
25-
uses: astral-sh/setup-uv@v7
25+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
2626
- name: Build distribution
2727
run: uv build
2828
- name: Publish

‎.github/workflows/smokeshow.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
env:
1818
GITHUB_CONTEXT: ${{ toJson(github) }}
1919
run: echo "$GITHUB_CONTEXT"
20-
- uses: actions/setup-python@v6
20+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2121
with:
2222
python-version: '3.13'
2323

2424
- run: pip install smokeshow
2525

26-
- uses: actions/download-artifact@v8
26+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
2727
with:
2828
name: coverage-html
2929
path: htmlcov

‎.github/workflows/test-redistribute.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
env:
1818
GITHUB_CONTEXT: ${{ toJson(github) }}
1919
run: echo "$GITHUB_CONTEXT"
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121
- name: Set up Python
22-
uses: actions/setup-python@v6
22+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2323
with:
2424
python-version-file: "pyproject.toml"
2525
# Issue ref: https://github.com/actions/setup-python/issues/436

‎.github/workflows/test.yml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ jobs:
5252
env:
5353
GITHUB_CONTEXT: ${{ toJson(github) }}
5454
run: echo "$GITHUB_CONTEXT"
55-
- uses: actions/checkout@v6
55+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5656
- name: Set up Python
57-
uses: actions/setup-python@v6
57+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5858
with:
5959
python-version: ${{ matrix.python-version }}
6060
# Issue ref: https://github.com/actions/setup-python/issues/436
6161
# cache: "pip"
6262
# cache-dependency-path: pyproject.toml
6363
- name: Install uv
64-
uses: astral-sh/setup-uv@v7
64+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
6565
# Allow debugging with tmate
6666
- name: Setup tmate session
67-
uses: mxschmitt/action-tmate@v3
67+
uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 # v3.23
6868
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
6969
with:
7070
limit-access-to-actor: true
@@ -77,7 +77,7 @@ jobs:
7777
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
7878
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
7979
- name: Store coverage files
80-
uses: actions/upload-artifact@v7
80+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
8181
with:
8282
name: coverage-${{ runner.os }}-${{ matrix.python-version }}
8383
path: coverage
@@ -91,17 +91,17 @@ jobs:
9191
env:
9292
GITHUB_CONTEXT: ${{ toJson(github) }}
9393
run: echo "$GITHUB_CONTEXT"
94-
- uses: actions/checkout@v6
95-
- uses: actions/setup-python@v6
94+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
95+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
9696
with:
9797
python-version-file: "pyproject.toml"
9898
# Issue ref: https://github.com/actions/setup-python/issues/436
9999
# cache: "pip"
100100
# cache-dependency-path: pyproject.toml
101101
- name: Install uv
102-
uses: astral-sh/setup-uv@v7
102+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
103103
- name: Get coverage files
104-
uses: actions/download-artifact@v8
104+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
105105
with:
106106
pattern: coverage-*
107107
path: coverage
@@ -111,7 +111,7 @@ jobs:
111111
- run: uv run coverage combine coverage
112112
- run: uv run coverage html --title "Coverage for ${{ github.sha }}"
113113
- name: Store coverage HTML
114-
uses: actions/upload-artifact@v7
114+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
115115
with:
116116
name: coverage-html
117117
path: htmlcov
@@ -130,6 +130,6 @@ jobs:
130130
GITHUB_CONTEXT: ${{ toJson(github) }}
131131
run: echo "$GITHUB_CONTEXT"
132132
- name: Decide whether the needed jobs succeeded or failed
133-
uses: re-actors/alls-green@release/v1
133+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
134134
with:
135135
jobs: ${{ toJSON(needs) }}

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.6.0
5+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0
66
hooks:
77
- id: check-added-large-files
88
- id: check-toml

0 commit comments

Comments
 (0)