feat(lint): add actionlint for GitHub Actions workflow validation #809
Workflow file for this run
This file contains hidden or 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 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - 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 |