Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/actionscope.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: ActionScope
on:
pull_request:
paths:
- ".github/actions/**"
- ".github/workflows/**"
- "**/*.tf"
- "**/*.tf.json"
- "**/*iam*.json"
- "**/*policy*.json"
push:
branches:
- master
paths:
- ".github/actions/**"
- ".github/workflows/**"
- "**/*.tf"
- "**/*.tf.json"
- "**/*iam*.json"
- "**/*policy*.json"
workflow_dispatch:

permissions:
contents: read

jobs:
scan:
name: GitHub Actions security exposure
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
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.


- name: Scan workflow exposure
run: actionscope scan . --fail-on critical --no-color
Loading