Skip to content

Harden set-default Checkout in e2e-versions.yml (persist-credentials: false) - #1121

Closed
brunoborges wants to merge 1 commit into
mainfrom
brunoborges-harden-e2e-versions-checkout
Closed

Harden set-default Checkout in e2e-versions.yml (persist-credentials: false)#1121
brunoborges wants to merge 1 commit into
mainfrom
brunoborges-harden-e2e-versions-checkout

Conversation

@brunoborges

Copy link
Copy Markdown
Contributor

Description

Follow-up review of .github/workflows/e2e-versions.yml after the template-injection fixes in #1114 and #1120.

A post-merge Copilot review comment on #1114 noted the "Verify Java 21 outputs are set" step still interpolated step outputs directly in a run: block. That concern was already resolved in #1120, and a full sweep confirms no ${{ ... }} expressions are interpolated directly into any run: block anymore — all step outputs, matrix values, and secrets are routed through step-level env:.

While reviewing, zizmor's artipacked audit flagged one remaining gap: the Checkout step in the set-default option job was the only one of 17 checkout steps in the file missing persist-credentials: false. This PR aligns it with the rest of the file.

- name: Checkout
  uses: actions/checkout@v7
  with:
    persist-credentials: false

After this change, zizmor .github/workflows/e2e-versions.yml reports no findings.

Related

Check list

  • Ran zizmor locally; no findings remain for this workflow.
  • Documentation changes required.
  • Tests added or updated.
… false)

The Checkout step in the set-default option job was the only one of 17
checkout steps in the workflow missing persist-credentials: false,
flagged by zizmor's artipacked audit. Align it with the rest of the file.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 14, 2026 20:10
@brunoborges
brunoborges requested a review from a team as a code owner July 14, 2026 20:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request hardens the setup-java-set-default job in .github/workflows/e2e-versions.yml by aligning its actions/checkout usage with the rest of the workflow: disabling persisted Git credentials to satisfy zizmor’s artipacked audit and reduce credential exposure risk.

Changes:

  • Add with: persist-credentials: false to the Checkout step in the setup-java-set-default job.
  • Bring the final remaining checkout step in this workflow in line with the other checkout steps already using persist-credentials: false.
Show a summary per file
File Description
.github/workflows/e2e-versions.yml Adds persist-credentials: false to the previously-missing checkout step in the set-default job to close the remaining zizmor hardening gap.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants