1name: git-secrets Check 2on: 3 push: 4 pull_request: 5 workflow_dispatch: 6jobs: 7 git-secrets: 8 runs-on: ubuntu-latest 9 steps: 10 - uses: actions/checkout@v2 11 with: 12 submodules: recursive 13 - name: Checkout awslabs/git-secrets 14 uses: actions/checkout@v2 15 with: 16 repository: awslabs/git-secrets 17 ref: master 18 path: git-secrets 19 - name: Install git-secrets 20 run: cd git-secrets && sudo make install && cd .. 21 - name: Run git-secrets 22 run: | 23 git-secrets --register-aws 24 git-secrets --scan 25