Repository navigation
Update markdownlint and fix release commit step #38
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: GitHub Actions Security Analysis | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["**"] | |
| permissions: {} | |
| jobs: | |
| zizmor: | |
| runs-on: ubuntu-slim | |
| permissions: | |
| contents: read # only needed for private or internal repos | |
| actions: read # only needed for private or internal repos | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Run zizmor | |
| uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1 | |
| with: | |
| advanced-security: false | |
| betterleaks: | |
| runs-on: ubuntu-slim | |
| permissions: | |
| contents: read # needed to check out a private repo | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| # betterleaks has no official action or PyPI package, so it is built from source | |
| - name: Install Go | |
| uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0 | |
| with: | |
| go-version: stable | |
| cache: false | |
| - name: Install betterleaks | |
| run: | | |
| go install github.com/betterleaks/betterleaks@v1.10.1 | |
| - name: Scan git history for secrets | |
| run: | | |
| "$(go env GOPATH)/bin/betterleaks" git --redact . |