Fix pat-cross-repo in publish--push-charts.yml#228
Draft
CodeOpsAI wants to merge 1 commit into
Draft
Conversation
This PR addresses 2 workflow findings: - [high] pat-cross-repo in .github/workflows/publish--push-charts.yml: PAT used for cross-repo workflow dispatch - [high] pat-cross-repo in .github/workflows/publish--push-charts.yml: PAT used for cross-repo workflow dispatch These workflows handle CI/CD with elevated privileges; the affected configurations expand attack surface or grant tokens broader access than needed. See the PR description for per-finding rationale and citations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
About codeopsai
codeopsai analyzes public GitHub Actions workflows for security and reliability issues and opens fixes for maintainer review. Every PR carries citations to the relevant standard (CWE, GitHub docs) and a structural verification trail; if our evidence bar isn't met, we don't open the PR.
Mistake, or unwelcome? Comment here or open an issue at github.com/codeopsai/feedback. We read every one and adjust.
Setup checklist
permission-<name>inputs, and install it on the target repository.APP_ID.APP_PRIVATE_KEY.Once these three are done, mark this PR ready-for-review and merge. The
actions/create-github-app-tokenstep will generate a short-lived, repo-scoped token at runtime — strictly safer than the long-lived PAT it replaces.Why these matter
Why downgrade these tokens (
pat-cross-repo)Each Personal Access Token below is used for a read-only operation against a public repository. A PAT carries the union of its owner's repository permissions — almost always broader than these reads require.
GITHUB_TOKENis workflow-scoped, ephemeral, and provides the same 5000/hr authenticated rate limit for public read operations — the strictly-safer credential. The tj-actions/changed-files supply-chain attack (CVE-2025-30066, Mar 2025) explicitly enumerated PATs among the secrets it exfiltrated.Reference: CWE-1392 · GitHub/OWASP guidance · Real-world precedent: tj-actions/changed-files supply-chain attack (CVE-2025-30066, Mar 2025) — exfiltrated PATs
.github/workflows/publish--push-charts.ymlpat-cross-repo(jobpush_charts)pat-cross-repo(jobpush_charts)Diff
Have other repositories you'd like analysed? Request a scan at codeopsai.com.
AI-generated. Review the diff before merging.