From 11f4a817e46ab782eda53f812f0060065f712193 Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Sun, 23 Aug 2026 18:30:19 -0400 Subject: [PATCH] Pin GitHub Actions to full-length commit SHAs --- .github/dependabot.yml | 11 +++++++++++ .github/workflows/CI.yml | 8 ++++---- .github/workflows/pypi_publish.yml | 12 ++++++------ 3 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2c48305 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + groups: + github-actions: + patterns: ["*"] + schedule: + interval: "weekly" + cooldown: + default-days: 7 diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 72b5116..3ca98f6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -31,10 +31,10 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: # Version range or exact version of a Python version to use, using SemVer's version range syntax. python-version: "3.12" @@ -52,7 +52,7 @@ jobs: run: python -m cibuildwheel --output-dir wheelhouse - name: Upload Wheels - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: path: ./wheelhouse/*.whl name: wheels-artifact @@ -62,7 +62,7 @@ jobs: run: python setup.py sdist --formats=gztar - name: Upload Source Distribution - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: # Updated the path to match the new .tar.gz file extension path: ./dist/*.tar.gz diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml index 4d176eb..5792f7a 100644 --- a/.github/workflows/pypi_publish.yml +++ b/.github/workflows/pypi_publish.yml @@ -26,10 +26,10 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: # Version range or exact version of a Python version to use, using SemVer's version range syntax. python-version: "3.12" @@ -47,7 +47,7 @@ jobs: run: python -m cibuildwheel --output-dir wheelhouse - name: Upload Wheels - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: path: ./wheelhouse/*.whl name: wheels-artifact @@ -57,7 +57,7 @@ jobs: run: python setup.py sdist --formats=gztar - name: Upload Source Distribution - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: # Updated the path to match the new .tar.gz file extension path: ./dist/*.tar.gz @@ -73,12 +73,12 @@ jobs: id-token: write # Ensure this is set correctly for trusted publishing if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # Corrected condition to check for tag format steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: wheels-artifact path: dist - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: source-dist-artifact path: dist