Objective
Fix a Medium severity security vulnerability (artipacked) in the daily-copilot-token-report workflow identified by zizmor in discussion #19004.
Context
The daily-copilot-token-report.lock.yml workflow uses actions/checkout which by default persists credentials in .git/config. If a subsequent artifact upload step captures the workspace, the short-lived GITHUB_TOKEN could be included in the artifact and accessible to anyone with read access to the repository's Actions artifacts.
Source: Static Analysis Report - 2026-03-01, zizmor artipacked finding at line 300.
Approach
- Open
.github/workflows/daily-copilot-token-report.md (the source markdown file)
- Locate the
actions/checkout step in the workflow frontmatter or steps
- Add
persist-credentials: false to the checkout step configuration:
- uses: actions/checkout@v4
with:
persist-credentials: false
- Run
make recompile to regenerate daily-copilot-token-report.lock.yml
- Verify the lock file contains
persist-credentials: false on the checkout step
Files to Modify
.github/workflows/daily-copilot-token-report.md — add persist-credentials: false to checkout step
.github/workflows/daily-copilot-token-report.lock.yml — regenerated via make recompile
Acceptance Criteria
Generated by Plan Command for issue #discussion #19004
Objective
Fix a Medium severity security vulnerability (
artipacked) in thedaily-copilot-token-reportworkflow identified by zizmor in discussion #19004.Context
The
daily-copilot-token-report.lock.ymlworkflow usesactions/checkoutwhich by default persists credentials in.git/config. If a subsequent artifact upload step captures the workspace, the short-livedGITHUB_TOKENcould be included in the artifact and accessible to anyone with read access to the repository's Actions artifacts.Source: Static Analysis Report - 2026-03-01, zizmor
artipackedfinding at line 300.Approach
.github/workflows/daily-copilot-token-report.md(the source markdown file)actions/checkoutstep in the workflow frontmatter or stepspersist-credentials: falseto the checkout step configuration:make recompileto regeneratedaily-copilot-token-report.lock.ymlpersist-credentials: falseon the checkout stepFiles to Modify
.github/workflows/daily-copilot-token-report.md— addpersist-credentials: falseto checkout step.github/workflows/daily-copilot-token-report.lock.yml— regenerated viamake recompileAcceptance Criteria
actions/checkoutstep indaily-copilot-token-reporthaspersist-credentials: falsemake agent-finishpasses without errors