From 4c774644acb5bdbf10b055aeb82f58eb95b75acc Mon Sep 17 00:00:00 2001 From: Dan Fiedler Date: Wed, 12 Aug 2026 15:30:10 -0400 Subject: [PATCH] Pin GitHub Actions to full-length commit SHAs --- .github/dependabot.yml | 2 ++ .github/workflows/auto-label.yml | 2 +- .github/workflows/codeql.yml | 8 ++++---- .github/workflows/round-robin.yml | 10 +++++----- .github/workflows/stale.yml | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b5b1e8b0..3d77101d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -37,3 +37,5 @@ updates: github-actions: patterns: - "*" + cooldown: + default-days: 7 diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 975fc7b0..47ec7430 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -15,7 +15,7 @@ jobs: if: contains(github.event.issue.labels.*.name, 'waiting for response') && !contains(github.event.issue.labels.*.name, 'user responded') steps: - name: Add/Remove labels when user responds - uses: actions/github-script@v6 + uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0adf6439..209cee76 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -16,18 +16,18 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1 with: languages: python # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1 diff --git a/.github/workflows/round-robin.yml b/.github/workflows/round-robin.yml index f85b75f2..646dd250 100644 --- a/.github/workflows/round-robin.yml +++ b/.github/workflows/round-robin.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Find last assigned id: assigned - uses: actions/github-script@v6.3.3 + uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 with: github-token: ${{secrets.GITHUB_TOKEN}} result-encoding: string @@ -29,7 +29,7 @@ jobs: env: LAST_ASSIGNED: ${{ steps.assigned.outputs.result }} run: echo "$LAST_ASSIGNED" - - uses: lee-dohm/team-rotation@v1 + - uses: lee-dohm/team-rotation@24c846902a8e49e0e0d4f4674af81227fa621a47 # v1.1.4 with: last: ${{ steps.assigned.outputs.result }} include: bschnurr heejaechang StellaHuang95 rchiodo gramster @@ -39,7 +39,7 @@ jobs: NEXT_ROTATION: ${{ steps.rotation.outputs.next }} run: echo "$NEXT_ROTATION" - name: Assign to next person - uses: actions/github-script@v6.3.3 + uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -50,7 +50,7 @@ jobs: assignees: ['${{ steps.rotation.outputs.next }}'] }) - name: Give it the label 'needs repro' - uses: actions/github-script@v6.3.3 + uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | @@ -61,7 +61,7 @@ jobs: labels: ['needs repro'] }) - name: Save assignment to state - uses: actions/github-script@v6.3.3 + uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e891e752..83548c5f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -25,7 +25,7 @@ jobs: issues: write steps: - - uses: actions/stale@v5 + - uses: actions/stale@f7176fd3007623b69d27091f9b9d4ab7995f0a06 # v5.2.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-issue-stale: 30