From 09b7d786bbe23bd2ae2b18df18b09be886f5d1b7 Mon Sep 17 00:00:00 2001 From: irfanuddinahmad Date: Tue, 19 May 2026 10:05:16 +0500 Subject: [PATCH] chore: pin GitHub Actions workflows to full commit SHAs --- .github/workflows/backend-ci.yml | 8 ++++---- .github/workflows/release.yml | 18 +++++++++--------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index 6486dee..5521448 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -22,14 +22,14 @@ jobs: python-version: ["3.12"] toxenv: [quality, docs, pii_check, django52, django60] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: setup python - uses: actions/setup-python@v5 + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: ${{ matrix.python-version }} - name: Install uv - uses: astral-sh/setup-uv@v4 + uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4.2.0 - name: Install CI dependencies run: uv sync --group ci @@ -41,7 +41,7 @@ jobs: - name: Run coverage if: matrix.python-version == '3.12' && matrix.toxenv == 'django52' - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 with: token: ${{ secrets.CODECOV_TOKEN }} flags: unittests diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 315f97c..117df66 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: # while the workflow was running, which prevents accidentally releasing un-evaluated # changes. - name: Setup | Checkout Repository on Release Branch - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: ${{ github.ref_name }} @@ -38,7 +38,7 @@ jobs: - name: Action | Semantic Version Release id: release # Adjust tag with desired version if applicable. - uses: python-semantic-release/python-semantic-release@v10.5.3 + uses: python-semantic-release/python-semantic-release@350c48fcb3ffcdfd2e0a235206bc2ecea6b69df0 # v10.5.3 with: github_token: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }} git_committer_name: "github-actions" @@ -47,7 +47,7 @@ jobs: directory: './backend-plugin-sample' - name: Publish | Upload to GitHub Release Assets - uses: python-semantic-release/publish-action@v10.5.3 + uses: python-semantic-release/publish-action@310a9983a0ae878b29f3aac778d7c77c1db27378 # v10.5.3 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }} @@ -55,7 +55,7 @@ jobs: directory: './backend-plugin-sample' - name: Upload | Backend Distribution Artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 if: steps.release.outputs.released == 'true' with: name: backend-distribution-artifacts @@ -72,7 +72,7 @@ jobs: working-directory: './tutor-contrib-sample' - name: Upload | Tutor Plugin Distribution Artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 if: steps.release.outputs.released == 'true' with: name: tutor-distribution-artifacts @@ -98,7 +98,7 @@ jobs: steps: - name: Setup | Download Build Artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 id: artifact-download with: name: backend-distribution-artifacts @@ -122,7 +122,7 @@ jobs: steps: - name: Setup | Download Build Artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: tutor-distribution-artifacts path: tutor-contrib-sample/dist @@ -144,12 +144,12 @@ jobs: steps: - name: Setup | Checkout Repository on Release Ref - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: ${{ github.sha }} - name: Setup Node.js - uses: actions/setup-node@v6 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version-file: './frontend-plugin-sample/.nvmrc'