From 9a8561b627cbf53f46c527bdc3abf3d6355dc5a9 Mon Sep 17 00:00:00 2001 From: vallab76 <43764868+vallab76@users.noreply.github.com> Date: Mon, 23 Nov 2026 18:41:23 -0600 Subject: [PATCH 1/2] supply-chain-pins: report on main, don't open pull requests Dependency and vulnerability updates reach products through the Valxel tool (GitHub's alerts; a hotfix or the next release), and GitHub Actions may not open pull requests. On main the job now lists what's out of date in the run summary and changes nothing; on Dependabot's pull requests it still commits the pins to their branch. pull-requests: write is no longer asked for. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FsRHvpD3XS8GbKwwBHaFYq --- .github/workflows/supply-chain-pins.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/supply-chain-pins.yml b/.github/workflows/supply-chain-pins.yml index 1791380..1576892 100644 --- a/.github/workflows/supply-chain-pins.yml +++ b/.github/workflows/supply-chain-pins.yml @@ -3,7 +3,8 @@ # - on a branch named supply-chain-pins*: commits the pins to that branch # - on a Dependabot pull request: refreshes the lockfile and checksums for the new versions, so # the update passes verification -# - weekly and on demand: opens a pull request if anything is unpinned +# - weekly and on demand (main): reports anything unpinned in the run's summary, and changes +# nothing: updates reach main through the Valxel tool (GitHub's alerts; a hotfix or a release) name: supply-chain-pins on: push: @@ -12,8 +13,7 @@ on: workflow_dispatch: schedule: [{ cron: "17 6 * * 1" }] permissions: - contents: write - pull-requests: write + contents: write # a Dependabot or supply-chain-pins* branch only concurrency: group: pins-${{ github.head_ref || github.ref }} cancel-in-progress: true @@ -41,7 +41,6 @@ jobs: ./gradlew --no-daemon -q --write-locks --write-verification-metadata sha256 dependencies build -x test - name: Commit env: - GH_TOKEN: ${{ github.token }} REF: ${{ github.head_ref || github.ref_name }} run: | git add -A @@ -49,10 +48,20 @@ jobs: git -c user.name="valxel-pins" -c user.email="valxel-pins@users.noreply.github.com" \ commit -q -m "Pin base images, dependencies and their checksums" if [ "$REF" = "main" ]; then - branch="supply-chain-pins-$(date +%Y%m%d)" - git push -q origin "HEAD:refs/heads/$branch" - gh pr create --head "$branch" --title "Pin base images and dependencies" \ - --body "Base images pinned to their digests, and (Gradle) dependencies locked with checksums, by supply-chain-pins." + # Main isn't changed from here and no pull request is opened: dependency and vulnerability + # updates reach products through the Valxel tool (GitHub's alerts, a hotfix or the next + # release). What would change is listed in the run's summary. + { + echo "### Not pinned on main" + echo + echo "supply-chain-pins found these out of date; it changes nothing on main." + echo + echo '```' + git show --stat --format= HEAD + git show --format= HEAD -- '*.lockfile' 'Dockerfile*' | grep '^[-+][^-+]' | head -40 + echo '```' + } >> "$GITHUB_STEP_SUMMARY" + echo "::notice title=supply-chain-pins::Out of date on main; see the run summary (nothing pushed)" else git push -q origin "HEAD:$REF" fi From 706a4475ad2e567c6c99a5d5fb6a90e5a3b4d8f4 Mon Sep 17 00:00:00 2001 From: vallab76 <43764868+vallab76@users.noreply.github.com> Date: Mon, 23 Nov 2026 18:49:44 -0600 Subject: [PATCH 2/2] supply-chain-pins: one space before the comment, as Prettier writes it Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FsRHvpD3XS8GbKwwBHaFYq --- .github/workflows/supply-chain-pins.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/supply-chain-pins.yml b/.github/workflows/supply-chain-pins.yml index 1576892..b0fd793 100644 --- a/.github/workflows/supply-chain-pins.yml +++ b/.github/workflows/supply-chain-pins.yml @@ -13,7 +13,7 @@ on: workflow_dispatch: schedule: [{ cron: "17 6 * * 1" }] permissions: - contents: write # a Dependabot or supply-chain-pins* branch only + contents: write # a Dependabot or supply-chain-pins* branch only concurrency: group: pins-${{ github.head_ref || github.ref }} cancel-in-progress: true