From a9fc9be0a616a385885d66a988c4bcda00107c50 Mon Sep 17 00:00:00 2001 From: agent-kit-startup <273612197+agent-kit-startup@users.noreply.github.com> Date: Mon, 30 Nov 2026 15:48:55 -0300 Subject: [PATCH] ci: pin actions by commit SHA and let Dependabot keep them current actions/checkout is pinned to the commit of v4.4.0 (the release v4 pointed to), with the tag as a trailing comment, so a moved tag cannot change what runs in CI. A weekly Dependabot job for github-actions opens the update PRs. --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/ci.yml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..bfb93a6 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + # Keeps the SHA-pinned actions in .github/workflows current; the tag + # stays in the trailing comment. + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + commit-message: + prefix: ci diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed0e4e4..70843d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Tools run: bash --version | head -n 1 && jq --version && git --version - name: Tests (fake agent-kit, no network) @@ -21,7 +21,7 @@ jobs: hygiene: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 - name: Hygiene scan (secrets, e-mails, IPs, personal paths) run: bash scripts/hygiene-scan.sh - name: Shell scripts parse with the shell their shebang names