Skip to content

[Code Quality] Fix artipacked security issue - Prevent credential persistence in workflow artifacts #14438

Closed

Description

@github-actions

Description

Two workflows are uploading artifacts that may contain GitHub token credentials, creating a medium-severity security issue identified by zizmor security scanner.

Affected Workflows:

  • daily-copilot-token-report.lock.yml (Line 115)
  • hourly-ci-cleaner.lock.yml (Line 817)

Security Risk: When workflows use actions/checkout and then upload artifacts, GITHUB_TOKEN credentials can persist in the artifact archive, potentially exposing secrets to unauthorized users with artifact access.

Suggested Changes

  1. Review artifact upload steps in both workflows to ensure GITHUB_TOKEN is not included
  2. Option A: Exclude .git directory and credential files from artifact uploads
  3. Option B: Use actions/checkout with persist-credentials: false before artifact creation
  4. Option C: Clean up credentials before artifact upload

Example Fix Pattern

---
# In workflow frontmatter
jobs:
  main:
    steps:
      - uses: actions/checkout@v4
        with:
          persist-credentials: false  # Prevent token persistence
      
      # ... work steps ...
      
      - name: Upload Artifacts
        uses: actions/upload-artifact@v4
        with:
          name: results
          path: |
            output/
            !.git/  # Exclude git directory

Files Affected

  • .github/workflows/daily-copilot-token-report.md (source)
  • .github/workflows/hourly-ci-cleaner.md (source)
  • Compiled .lock.yml files will be regenerated after fix

Success Criteria

  • Review both workflows' artifact upload steps
  • Implement credential exclusion strategy
  • Run make recompile to regenerate lock files
  • Verify with zizmor that artipacked issues are resolved
  • All tests pass (make test-unit)

Source

Extracted from Static Analysis Report discussion #14429

Zizmor finding:

  • Issue: artipacked
  • Severity: Medium
  • Reference: Credential persistence through GitHub Actions artifacts

Priority

High - Security issue affecting credential safety, should be fixed during release focus period

AI generated by Discussion Task Miner - Code Quality Improvement Agent

  • expires on Feb 9, 2026, 1:29 AM UTC

Activity

  1. github-actions commented on Feb 8, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster has assigned this to Copilot!

    I've identified this issue as a good candidate for automated resolution and assigned it to the Copilot agent.

    The Copilot agent will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    AI generated by Issue Monster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions