Repository navigation
Label pull requests by release risk #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| name: Pull Request | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize, ready_for_review, labeled] | ||
|
|
||
| jobs: | ||
| pull-request: | ||
| uses: simpleanalytics/github-actions/.github/workflows/pull-request.yml@main | ||
| secrets: | ||
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Handle pull requests that cannot provide The reported run fails when this secret is absent, so no release-risk label is produced. Add the repository secret before merging. If the requirement remains “every pull request,” add a trusted fallback for fork and Dependabot pull requests. GitHub withholds repository secrets and provides a read-only token for those
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: simpleanalytics/.github
Length of output: 1111
Script executed:
Repository: simpleanalytics/.github
Length of output: 978
Script executed:
Repository: simpleanalytics/.github
Length of output: 1008
Script executed:
Repository: simpleanalytics/.github
Length of output: 1053
Security Misconfiguration
Reachability: Internal
Exploitability: Difficult
CWE: CWE-829 — Inclusion of Functionality from Untrusted Control Sphere
View Security blast radius
Pin the reusable workflow to a reviewed commit SHA.
@mainis mutable, and this workflow passes all caller secrets withsecrets: inherit. A writer or compromised account that changessimpleanalytics/github-actionscan execute modified code with those secrets on a later run. Replace@mainwith a full immutable commit SHA.zizmor (1.30.1)
[warning] 8-11: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block
(excessive-permissions)
[warning] 9-9: secrets unconditionally inherited by called workflow (secrets-inherit): this reusable workflow
(secrets-inherit)
Source: Learnings
Script executed:
Repository: simpleanalytics/.github
Length of output: 42068
Allow security-sensitive
.githubchanges to require review.The shared workflow marks all
simpleanalytics/.githubchanges as “Always routine.” Its prompt states that repository notes override general guidance. This PR passessecrets: inheritto a reusable workflow with write permissions, but Claude can still returnchange: routine, which does not trigger human review.Suggested fix
zizmor (1.30.1)
[warning] 8-11: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block
(excessive-permissions)
[warning] 9-9: secrets unconditionally inherited by called workflow (secrets-inherit): this reusable workflow
(secrets-inherit)