git-secrets Check #1109
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: git-secrets Check | |
permissions: {} | |
on: | |
push: | |
workflow_dispatch: | |
pull_request: | |
branches: ["main", "release-*"] | |
merge_group: | |
jobs: | |
git-secrets: | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04 ] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Checkout awslabs/git-secrets | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
repository: awslabs/git-secrets | |
ref: master | |
path: git-secrets | |
- name: Install git-secrets | |
run: | | |
pushd git-secrets | |
sudo make install | |
popd | |
- name: Run git-secrets | |
run: | | |
git-secrets --register-aws | |
# If no files are provided, all files returned by git ls-files are scanned | |
git-secrets --scan |