From 0f62a3a23057cd704d5f4818ee908aab8a0ba68a Mon Sep 17 00:00:00 2001 From: Dave Mihalcik Date: Mon, 16 Nov 2026 23:39:54 -0500 Subject: [PATCH] chore(ci): Pin GitHub Actions to SHAs; let dependabot manage them Pin the remaining third-party actions referenced by tag (codeql-action v3, actions/checkout v3) to full commit SHAs with the version in a trailing comment, matching the rest of the workflows. Add a github-actions ecosystem to dependabot.yml so it opens monthly version-update PRs that bump both the SHA and the version comment, with a 7-day cooldown so new releases have time to be vetted before pins move to them. Internal opentdf/* reusable workflows and actions stay on @main. Verified: no remaining unpinned non-opentdf 'uses:' refs; SHAs resolved via git ls-remote against the upstream tags; dependabot.yml parses. Signed-off-by: Dave Mihalcik --- .github/dependabot.yml | 17 +++++++++++++---- .github/workflows/codeql.yaml | 6 +++--- .github/workflows/update-platform-branch.yaml | 2 +- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 14a940fb..580ebc48 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,10 +3,8 @@ # Documentation: # https://docs.github.com/code-security/dependabot/working-with-dependabot/dependabot-options-reference # -# Dependabot only opens security update PRs here; open-pull-requests-limit: 0 -# turns off version updates. Security update PRs still use the commit-message -# settings, which keep their titles within the scopes allowed by the PR title -# check in workflows/checks.yaml. +# Commit-message prefixes keep PR titles within the scopes allowed by the PR +# title check in workflows/checks.yaml. version: 2 updates: @@ -20,9 +18,20 @@ updates: - /sdk-pqc-bc schedule: interval: weekly + # Security updates only. open-pull-requests-limit: 0 commit-message: # Runtime dependencies ship in released artifacts, so cut a patch release. prefix: "fix(main)" # Test-scoped dependencies don't change released artifacts. prefix-development: "chore(ci)" + + - package-ecosystem: github-actions + directory: / + schedule: + interval: monthly + # Give compromised releases time to be caught before SHA pins move to them. + cooldown: + default-days: 7 + commit-message: + prefix: "chore(ci)" diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index d013aad8..c760e912 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -29,17 +29,17 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} - name: Initialize the CodeQL tools for scanning - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@9418214df1f2c4b8128c770156c409013b07d6b9 # v3.39.3 with: languages: ${{ matrix.language }} timeout-minutes: 5 - name: Autobuild - uses: github/codeql-action/autobuild@v3 + uses: github/codeql-action/autobuild@9418214df1f2c4b8128c770156c409013b07d6b9 # v3.39.3 timeout-minutes: 10 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@9418214df1f2c4b8128c770156c409013b07d6b9 # v3.39.3 with: category: "/language:${{matrix.language}}" timeout-minutes: 10 diff --git a/.github/workflows/update-platform-branch.yaml b/.github/workflows/update-platform-branch.yaml index b13e6c1c..798aa07a 100644 --- a/.github/workflows/update-platform-branch.yaml +++ b/.github/workflows/update-platform-branch.yaml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout java-sdk repository - uses: actions/checkout@v3 + uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0 with: persist-credentials: true