From 5ed41d904629f6e198a502ea96541d25125888a7 Mon Sep 17 00:00:00 2001 From: Ignacio Rodriguez Paez Date: Wed, 11 Nov 2026 10:22:31 +0000 Subject: [PATCH] Pin GitHub Actions to commit SHAs Sourcegraph-Batch-Change: https://sourcegraph.sourcegraph.com/batch-change-agents/1257 --- .github/workflows/diff-tour.yml | 2 +- .github/workflows/release.yml | 16 ++++++++-------- .github/workflows/validate.yml | 18 +++++++++--------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/diff-tour.yml b/.github/workflows/diff-tour.yml index 78abbc7..b4d0564 100644 --- a/.github/workflows/diff-tour.yml +++ b/.github/workflows/diff-tour.yml @@ -24,4 +24,4 @@ jobs: # Diff Tour resolves branch names against the base repo, so skip fork PRs if: github.event.pull_request.head.repo.full_name == github.repository steps: - - uses: sourcegraph/actions/diff-tour@main + - uses: sourcegraph/actions/diff-tour@4430dc1e4dde002387a4b655b41f6431ca75b1c1 # main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e08ceb..a67d4bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,19 +67,19 @@ jobs: steps: - name: Check out release ref - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false ref: ${{ needs.release_ref.outputs.tag }} - name: Set up Python - uses: actions/setup-python@v7 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Cache uv - uses: actions/cache@v6 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/uv key: uv-${{ runner.os }}-py${{ env.PYTHON_VERSION }}-${{ hashFiles('uv.lock') }} @@ -251,7 +251,7 @@ jobs: echo "path=${notes_path}" >> "${GITHUB_OUTPUT}" - name: Upload workflow artifact - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: src-py-lib-release path: | @@ -262,7 +262,7 @@ jobs: ${{ steps.notes.outputs.path }} - name: Upload PyPI artifact - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: pypi-distributions path: | @@ -278,7 +278,7 @@ jobs: steps: - name: Download release assets - uses: actions/download-artifact@v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: src-py-lib-release path: release-assets @@ -326,13 +326,13 @@ jobs: steps: - name: Download built distribution - uses: actions/download-artifact@v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: pypi-distributions path: dist - name: Publish PyPI package - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3 with: packages-dir: dist skip-existing: true diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index e68255b..e7ecbbd 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -98,7 +98,7 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false ref: ${{ inputs.ref || github.ref }} @@ -130,13 +130,13 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Cache npm - uses: actions/cache@v6 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.npm key: npm-${{ runner.os }}-markdownlint-cli2-${{ env.MARKDOWNLINT_CLI2_VERSION }} @@ -156,19 +156,19 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Set up Python - uses: actions/setup-python@v7 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Cache uv - uses: actions/cache@v6 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/uv key: uv-${{ runner.os }}-py${{ env.PYTHON_VERSION }}-${{ hashFiles('uv.lock') }} @@ -219,19 +219,19 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Set up Python - uses: actions/setup-python@v7 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: ${{ env.PYTHON_VERSION }} - name: Cache uv - uses: actions/cache@v6 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.cache/uv key: uv-${{ runner.os }}-py${{ env.PYTHON_VERSION }}-${{ hashFiles('uv.lock') }}