mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
* Add concurrency cancel and ignore docs/markdown changes across CI workflows * Clarify PR-only concurrency (no push queuing)
30 lines
877 B
YAML
30 lines
877 B
YAML
name: Secrets Scan
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
# PRs share a concurrency group (cancel/serialize); Pushes use unique groups to avoid cancellation/queuing
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.ref) || github.run_id }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
trufflehog:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout Source
|
|
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5
|
|
with:
|
|
fetch-depth: "0"
|
|
- name: TruffleHog OSS
|
|
uses: trufflesecurity/trufflehog@8b6f55b592e46ac44a42dc3e3dee0ebcc0f56df5
|
|
with:
|
|
path: ./
|
|
base: ${{ github.event.pull_request.base.sha }}
|
|
head: ${{ github.event.pull_request.head.sha }}
|