Skip to content

Commit 00aa944

Browse files
chore: pin GitHub Actions workflows to full commit SHAs (#53)
1 parent b5eae7c commit 00aa944

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/backend-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
python-version: ["3.12"]
2323
toxenv: [quality, docs, pii_check, django52, django60]
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2626
- name: setup python
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030

3131
- name: Install uv
32-
uses: astral-sh/setup-uv@v4
32+
uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0
3333

3434
- name: Install CI dependencies
3535
run: uv sync --group ci
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Run coverage
4343
if: matrix.python-version == '3.12' && matrix.toxenv == 'django52'
44-
uses: codecov/codecov-action@v4
44+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
4545
with:
4646
token: ${{ secrets.CODECOV_TOKEN }}
4747
flags: unittests

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
# while the workflow was running, which prevents accidentally releasing un-evaluated
2828
# changes.
2929
- name: Setup | Checkout Repository on Release Branch
30-
uses: actions/checkout@v6
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
with:
3232
ref: ${{ github.ref_name }}
3333

@@ -38,7 +38,7 @@ jobs:
3838
- name: Action | Semantic Version Release
3939
id: release
4040
# Adjust tag with desired version if applicable.
41-
uses: python-semantic-release/python-semantic-release@v10.5.3
41+
uses: python-semantic-release/python-semantic-release@350c48fcb3ffcdfd2e0a235206bc2ecea6b69df0 # v10.5.3
4242
with:
4343
github_token: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}
4444
git_committer_name: "github-actions"
@@ -47,15 +47,15 @@ jobs:
4747
directory: './backend-plugin-sample'
4848

4949
- name: Publish | Upload to GitHub Release Assets
50-
uses: python-semantic-release/publish-action@v10.5.3
50+
uses: python-semantic-release/publish-action@310a9983a0ae878b29f3aac778d7c77c1db27378 # v10.5.3
5151
if: steps.release.outputs.released == 'true'
5252
with:
5353
github_token: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}
5454
tag: ${{ steps.release.outputs.tag }}
5555
directory: './backend-plugin-sample'
5656

5757
- name: Upload | Backend Distribution Artifacts
58-
uses: actions/upload-artifact@v4
58+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5959
if: steps.release.outputs.released == 'true'
6060
with:
6161
name: backend-distribution-artifacts
@@ -72,7 +72,7 @@ jobs:
7272
working-directory: './tutor-contrib-sample'
7373

7474
- name: Upload | Tutor Plugin Distribution Artifacts
75-
uses: actions/upload-artifact@v4
75+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7676
if: steps.release.outputs.released == 'true'
7777
with:
7878
name: tutor-distribution-artifacts
@@ -98,7 +98,7 @@ jobs:
9898

9999
steps:
100100
- name: Setup | Download Build Artifacts
101-
uses: actions/download-artifact@v4
101+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
102102
id: artifact-download
103103
with:
104104
name: backend-distribution-artifacts
@@ -122,7 +122,7 @@ jobs:
122122

123123
steps:
124124
- name: Setup | Download Build Artifacts
125-
uses: actions/download-artifact@v4
125+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
126126
with:
127127
name: tutor-distribution-artifacts
128128
path: tutor-contrib-sample/dist
@@ -144,12 +144,12 @@ jobs:
144144

145145
steps:
146146
- name: Setup | Checkout Repository on Release Ref
147-
uses: actions/checkout@v6
147+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
148148
with:
149149
ref: ${{ github.sha }}
150150

151151
- name: Setup Node.js
152-
uses: actions/setup-node@v6
152+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
153153
with:
154154
node-version-file: './frontend-plugin-sample/.nvmrc'
155155

0 commit comments

Comments
 (0)