From 4f391f6c353964407a360aeaffc9b386dcdc0ffa Mon Sep 17 00:00:00 2001 From: Rishabh Singh Date: Sat, 30 May 2026 02:31:25 -0700 Subject: [PATCH] ci: add ActionScope workflow exposure scan --- .github/workflows/actionscope.yml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/actionscope.yml diff --git a/.github/workflows/actionscope.yml b/.github/workflows/actionscope.yml new file mode 100644 index 00000000000000..f3474ed7101da4 --- /dev/null +++ b/.github/workflows/actionscope.yml @@ -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" + + - name: Scan workflow exposure + run: actionscope scan . --fail-on critical --no-color