| 1 |
name: GitGuardian scan |
| 2 |
|
| 3 |
on: [push] |
| 4 |
|
| 5 |
permissions: |
| 6 |
contents: read |
| 7 |
|
| 8 |
jobs: |
| 9 |
scanning: |
| 10 |
name: GitGuardian scan |
| 11 |
runs-on: ubuntu-latest |
| 12 |
concurrency: |
| 13 |
group: ${{ github.workflow }}-${{ github.ref }} |
| 14 |
cancel-in-progress: true |
| 15 |
steps: |
| 16 |
- name: Harden Runner |
| 17 |
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 |
| 18 |
with: |
| 19 |
egress-policy: audit |
| 20 |
|
| 21 |
- name: Checkout |
| 22 |
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 |
| 23 |
with: |
| 24 |
fetch-depth: 0 |
| 25 |
- name: GitGuardian scan |
| 26 |
uses: GitGuardian/ggshield-action@da20be06cafe5e8633dc24744efe1efe8d30f06b |
| 27 |
env: |
| 28 |
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }} |
| 29 |
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }} |
| 30 |
GITHUB_PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }} |
| 31 |
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} |
| 32 |
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }} |