Skip to content

fix(ci): grant callers the permissions their reusable workflows decla… #52

fix(ci): grant callers the permissions their reusable workflows decla…

fix(ci): grant callers the permissions their reusable workflows decla… #52

# This workflow is managed by gh actions-lock.
# SPDX-License-Identifier: MPL-2.0
# This workflow is managed by gh actions-lock.
# This workflow is managed by gh actions-lock.
# Calls the estate's shared secret scanner (gitleaks + rust-secrets +
# shell-secrets). Added because this repository had NO leak scanning at all.
#
# `secrets: inherit` is REQUIRED — without it the gitleaks action's inner
# secrets.GITHUB_TOKEN is empty and the scan silently degrades.
name: "Secret Scanner"
on:
pull_request:
push:
branches: [main, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
jobs:
secret-scan:
uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@fcb566cfb8a86cea2d3666bf65a4f177a49b1313
secrets: inherit
permissions:

Check failure on line 25 in .github/workflows/secret-scanner.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/secret-scanner.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
actions: read
contents: read
security-events: write