Skip to content

Commit 97c5ad7

Browse files
chore: pin GitHub Actions workflows to full commit SHAs (#4725)
1 parent 343d2c7 commit 97c5ad7

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
status: ['']
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2121
- name: Format Python Version
2222
id: format_python_version
2323
shell: bash
@@ -45,7 +45,7 @@ jobs:
4545
- name: Upload coverage
4646
# Upload coverage only from the django52 job to avoid duplicate artifacts across the Django test matrix.
4747
if: matrix.db-version == 'mysql80' && matrix.django-version == 'django52'
48-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4949
with:
5050
name: coverage${{ matrix.pytest-split-group }}
5151
path: .coverage
@@ -56,24 +56,24 @@ jobs:
5656
needs: pytest
5757
runs-on: ubuntu-22.04
5858
steps:
59-
- uses: actions/checkout@v3
59+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
6060
- run: make ci_up
6161
env:
6262
PYTHON_VERSION: 3.12
6363
- name: Download all artifacts
6464
# Downloads coverage1, coverage2, etc.
65-
uses: actions/download-artifact@v4
65+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
6666
- name: Run coverage
6767
run: make ci_coverage
68-
- uses: codecov/codecov-action@v4
68+
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
6969
with:
7070
token: ${{ secrets.CODECOV_TOKEN }}
7171
fail_ci_if_error: true
7272

7373
quality:
7474
runs-on: ubuntu-22.04
7575
steps:
76-
- uses: actions/checkout@v3
76+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
7777
- run: make ci_up
7878
env:
7979
PYTHON_VERSION: 3.12
@@ -85,7 +85,7 @@ jobs:
8585
matrix:
8686
python-version: ['3.12']
8787
steps:
88-
- uses: actions/checkout@v3
88+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
8989
- run: make ci_up
9090
env:
9191
PYTHON_VERSION: ${{ matrix.python-version }}

.github/workflows/migrations-check-mysql8.yml

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

1919
steps:
2020
- name: Checkout repo
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2222

2323
- name: Setup Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Cache pip dependencies
3838
id: cache-dependencies
39-
uses: actions/cache@v4
39+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
4040
with:
4141
path: ${{ steps.pip-cache-dir.outputs.dir }}
4242
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/pip_tools.txt') }}

.github/workflows/requirements-upgrade.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
- name: setup target branch
2424
run: echo "target_branch=$(if ['${{ github.event.inputs.branch }}' = '']; then echo 'master'; else echo '${{ github.event.inputs.branch }}'; fi)" >> $GITHUB_ENV
2525

26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2727
with:
2828
ref: ${{ env.target_branch }}
2929

3030
- name: setup python
31-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2.3.4
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434

@@ -59,7 +59,7 @@ jobs:
5959
6060
- name: Send failure notification
6161
if: ${{ failure() }}
62-
uses: dawidd6/action-send-mail@v5
62+
uses: dawidd6/action-send-mail@7ac0fb1e367721ffc3985c672ba2e7659379bc00 # v5
6363
with:
6464
server_address: email-smtp.us-east-1.amazonaws.com
6565
server_port: 465

0 commit comments

Comments
 (0)