Skip to content

ci(semgrep): declare contents: read on the daily scan#9

Open
arpitjain099 wants to merge 1 commit into
cloudflare:mainfrom
arpitjain099:ci/add-permissions
Open

ci(semgrep): declare contents: read on the daily scan#9
arpitjain099 wants to merge 1 commit into
cloudflare:mainfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Adds a top-level permissions: contents: read to semgrep.yml, the sole workflow here. The scan runs in the official returntocorp/semgrep container, reads the checkout, and reports findings to Cloudflare's own Semgrep AppSec instance via SEMGREP_APP_TOKEN — none of that requires write scopes on the GitHub token.

Verified with yaml.safe_load.

Drops the default `GITHUB_TOKEN` scope down to read-only for the only
workflow in the repo. Semgrep findings are reported to Cloudflare's
internal Semgrep instance via `SEMGREP_APP_TOKEN`, so the GitHub token
only needs to read the checkout.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@arpitjain099
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

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.

1 participant