Skip to content
Merged
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
33 changes: 33 additions & 0 deletions .github/workflows/git-secrets-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Git Secrets Scan

permissions:
contents: read

on:
pull_request:
workflow_dispatch:

concurrency:
group: git-secrets-scan-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
scan:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Install git-secrets
run: |
git clone --depth 1 --branch 1.3.0 https://github.com/awslabs/git-secrets.git
cd git-secrets
sudo make install

- name: Configure git-secrets
run: git secrets --register-aws

- name: Run git-secrets
run: git secrets --scan
Loading