Skip to content

fix(ci): set persist-credentials: false on release preflight checkout - #750

Merged
marcusburghardt merged 1 commit into
complytime:mainfrom
marcusburghardt:fix/release-persist-credentials
Jul 17, 2026
Merged

marcusburghardt merged 1 commit into
complytime:mainfrom
marcusburghardt:fix/release-persist-credentials

Conversation

@marcusburghardt

Copy link
Copy Markdown
Member

Summary

The preflight job's actions/checkout step in release.yml did not set
persist-credentials: false, triggering a zizmor artipacked finding
(medium severity: credential persistence through GitHub Actions artifacts).

This blocks any PR that touches workflow files from passing the
Standardized CI / Run linters check, including Dependabot PR #747.

Changes

  • Add persist-credentials: false to the preflight checkout step
    (release.yml:42)
  • Update the "Create and push tag" step to authenticate via token URL
    (x-access-token) since git credentials are no longer persisted by
    the checkout action

Verification

  • yamllint: pass
  • actionlint: pass
  • zizmor: 0 findings (was 1 medium artipacked)

Context

  • Unblocks: ci(deps): bump actions/setup-go from 6.5.0 to 7.0.0 #747
  • The release job (line 163) already had persist-credentials: false;
    only the preflight job was missing it
  • Read-only git operations (ls-remote, tag -l) work without
    credentials on the public repo
  • GITHUB_TOKEN is masked in logs by GitHub Actions

@gxmiranda gxmiranda 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.

Clean, well-scoped security hardening fix. Adds persist-credentials: false to the preflight checkout (matching the existing pattern in the release job) and switches the tag push to explicit token URL auth. Eliminates the zizmor artipacked finding and unblocks #747.

No findings above LOW severity.

This review was generated by /review-pr (AI-assisted).

@sonupreetam sonupreetam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

The preflight job's checkout step in release.yml did not set
persist-credentials: false, triggering a zizmor artipacked
finding (credential persistence through GitHub Actions
artifacts). This blocks any PR that touches workflow files,
including Dependabot PR complytime#747.

Add persist-credentials: false to the preflight checkout and
update the tag push step to authenticate via token URL since
git credentials are no longer persisted by the checkout action.

Signed-off-by: Marc Abu Burghal <[email protected]>
Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Marcus Burghardt <[email protected]>
@marcusburghardt
marcusburghardt force-pushed the fix/release-persist-credentials branch from 6e3313a to 7437420 Compare July 17, 2026 12:28
@marcusburghardt
marcusburghardt merged commit 868f6fb into complytime:main Jul 17, 2026
19 of 29 checks passed
@marcusburghardt
marcusburghardt deleted the fix/release-persist-credentials branch July 17, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants