Skip to content

ci: add ActionScope GitHub Actions security exposure scan#116547

Closed
r12habh wants to merge 1 commit into
getsentry:masterfrom
r12habh:actionscope-security-scan
Closed

ci: add ActionScope GitHub Actions security exposure scan#116547
r12habh wants to merge 1 commit into
getsentry:masterfrom
r12habh:actionscope-security-scan

Conversation

@r12habh
Copy link
Copy Markdown

@r12habh r12habh commented May 30, 2026

What

Adds a lightweight ActionScope workflow to scan GitHub Actions, Terraform, and IAM/policy JSON changes for CI/CD security exposure.

The workflow is intentionally conservative:

  • runs only when workflow/action/IaC/policy files change, plus manual dispatch
  • uses only contents: read
  • does not call AWS APIs or require cloud credentials
  • pins actions/checkout to a full commit SHA
  • installs actionscope>=0.3.5,<1.0 from PyPI
  • fails only on critical findings, so the current non-critical findings do not block CI

Why

I ran ActionScope locally against this repository and it found enough workflow-level signal to make a recurring check useful.

Workflows scanned: 10
AWS credential sources: 0
Overall risk: HIGH
Critical: 0 | High: 14 | Medium: 2 | Low: 18

Notable current signal:

  • Several workflows grant id-token: write or write-capable GITHUB_TOKEN scopes.
  • No critical findings were detected with the current scanner.

Because this uses --fail-on critical, this PR should add visibility without changing the current pass/fail posture.

@r12habh r12habh requested a review from a team as a code owner May 30, 2026 09:32
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4f391f6. Configure here.

persist-credentials: false

- name: Install ActionScope
run: python3 -m pip install "actionscope>=0.3.5,<1.0"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Python setup breaks pip

High Severity

The job runs on ubuntu-24.04 and installs actionscope with system python3 -m pip install, but there is no actions/setup-python step or virtualenv. On that image, PEP 668 blocks installs into the default interpreter, so the install step fails and the scan never runs.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4f391f6. Configure here.

@r12habh r12habh closed this May 30, 2026
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