Skip to content

Commit dcc780e

Browse files
committed
🔒 Pin GitHub actions by commit SHA
1 parent 8bf0025 commit dcc780e

12 files changed

+34
-34
lines changed

.github/workflows/add-to-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Add to project
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/add-to-project@v1.0.2
15+
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
1616
with:
1717
project-url: https://github.com/orgs/fastapi/projects/2
1818
github-token: ${{ secrets.PROJECTS_TOKEN }}

.github/workflows/deploy-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v6
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
- run: docker compose -f compose.yml --project-name ${{ secrets.STACK_NAME_PRODUCTION }} build
3232
- run: docker compose -f compose.yml --project-name ${{ secrets.STACK_NAME_PRODUCTION }} up -d

.github/workflows/deploy-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ jobs:
2727
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v6
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
- run: docker compose -f compose.yml --project-name ${{ secrets.STACK_NAME_STAGING }} build
3232
- run: docker compose -f compose.yml --project-name ${{ secrets.STACK_NAME_STAGING }} up -d

.github/workflows/detect-conflicts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check if PRs have merge conflicts
15-
uses: eps1lon/actions-label-merge-conflict@v3
15+
uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 # v3.0.3
1616
with:
1717
dirtyLabel: "conflicts"
1818
repoToken: "${{ secrets.GITHUB_TOKEN }}"

.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
if: ${{ github.event.action != 'labeled' && github.event.action != 'unlabeled' }}
2121
- run: echo "Done adding labels"
2222
# Run this after labeler applied labels
@@ -27,7 +27,7 @@ jobs:
2727
pull-requests: read
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: docker://agilepathway/pull-request-label-checker:latest
30+
- uses: agilepathway/label-checker@c3d16ad512e7cea5961df85ff2486bb774caf3c5 # v1.6.65
3131
with:
3232
one_of: breaking,security,feature,bug,refactor,upgrade,docs,lang-all,internal
3333
repo_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/latest-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
env:
2727
GITHUB_CONTEXT: ${{ toJson(github) }}
2828
run: echo "$GITHUB_CONTEXT"
29-
- uses: actions/checkout@v6
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
with:
3131
# To allow latest-changes to commit to the main branch
3232
token: ${{ secrets.LATEST_CHANGES }}
33-
- uses: tiangolo/latest-changes@0.4.1
33+
- uses: tiangolo/latest-changes@c9d329cb147f0ddf4fb631214e3f838ff17ccbbd # 0.4.1
3434
with:
3535
token: ${{ secrets.GITHUB_TOKEN }}
3636
latest_changes_file: ./release-notes.md

.github/workflows/playwright.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
outputs:
2323
changed: ${{ steps.filter.outputs.changed }}
2424
steps:
25-
- uses: actions/checkout@v6
25+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626
# For pull requests it's not necessary to checkout the code but for the main branch it is
27-
- uses: dorny/paths-filter@v4
27+
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
2828
id: filter
2929
with:
3030
filters: |
@@ -47,18 +47,18 @@ jobs:
4747
shardTotal: [4]
4848
fail-fast: false
4949
steps:
50-
- uses: actions/checkout@v6
50+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5151
- uses: oven-sh/setup-bun@v2
52-
- uses: actions/setup-python@v6
52+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5353
with:
5454
python-version: '3.10'
5555
- name: Setup tmate session
56-
uses: mxschmitt/action-tmate@v3
56+
uses: mxschmitt/action-tmate@c0afd6f790e3a5564914980036ebf83216678101 # v3.23
5757
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
5858
with:
5959
limit-access-to-actor: true
6060
- name: Install uv
61-
uses: astral-sh/setup-uv@v7
61+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
6262
- run: uv sync
6363
working-directory: backend
6464
- run: bun ci
@@ -71,7 +71,7 @@ jobs:
7171
- run: docker compose down -v --remove-orphans
7272
- name: Upload blob report to GitHub Actions Artifacts
7373
if: ${{ !cancelled() }}
74-
uses: actions/upload-artifact@v7
74+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
7575
with:
7676
name: blob-report-${{ matrix.shardIndex }}
7777
path: frontend/blob-report
@@ -86,12 +86,12 @@ jobs:
8686
if: ${{ !cancelled() && needs.changes.outputs.changed == 'true' }}
8787
runs-on: ubuntu-latest
8888
steps:
89-
- uses: actions/checkout@v6
89+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9090
- uses: oven-sh/setup-bun@v2
9191
- name: Install dependencies
9292
run: bun ci
9393
- name: Download blob reports from GitHub Actions Artifacts
94-
uses: actions/download-artifact@v8
94+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
9595
with:
9696
path: frontend/all-blob-reports
9797
pattern: blob-report-*
@@ -100,7 +100,7 @@ jobs:
100100
run: bunx playwright merge-reports --reporter html ./all-blob-reports
101101
working-directory: frontend
102102
- name: Upload HTML report
103-
uses: actions/upload-artifact@v7
103+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
104104
with:
105105
name: html-report--attempt-${{ github.run_attempt }}
106106
path: frontend/playwright-report
@@ -115,7 +115,7 @@ jobs:
115115
runs-on: ubuntu-latest
116116
steps:
117117
- name: Decide whether the needed jobs succeeded or failed
118-
uses: re-actors/alls-green@release/v1
118+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
119119
with:
120120
jobs: ${{ toJSON(needs) }}
121121
allowed-skips: test-playwright

.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,7 +30,7 @@ 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:
@@ -39,11 +39,11 @@ jobs:
3939
fetch-depth: 0
4040
- uses: oven-sh/setup-bun@v2
4141
- name: Set up Python
42-
uses: actions/setup-python@v6
42+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
4343
with:
4444
python-version: "3.11"
4545
- name: Setup uv
46-
uses: astral-sh/setup-uv@v7
46+
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
4747
with:
4848
cache-dependency-glob: |
4949
requirements**.txt
@@ -69,7 +69,7 @@ jobs:
6969
git commit -m "🎨 Auto format and update with pre-commit"
7070
git push
7171
fi
72-
- uses: pre-commit-ci/lite-action@v1.1.0
72+
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
7373
if: env.HAS_SECRETS == 'false'
7474
with:
7575
msg: 🎨 Auto format and update with pre-commit
@@ -89,6 +89,6 @@ jobs:
8989
GITHUB_CONTEXT: ${{ toJson(github) }}
9090
run: echo "$GITHUB_CONTEXT"
9191
- name: Decide whether the needed jobs succeeded or failed
92-
uses: re-actors/alls-green@release/v1
92+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
9393
with:
9494
jobs: ${{ toJSON(needs) }}

.github/workflows/smokeshow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
statuses: write
1414

1515
steps:
16-
- uses: actions/checkout@v6
17-
- uses: actions/setup-python@v6
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1818
with:
1919
python-version: "3.13"
2020
- run: pip install smokeshow
21-
- uses: actions/download-artifact@v8
21+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
2222
with:
2323
name: coverage-html
2424
path: backend/htmlcov

0 commit comments

Comments
 (0)