Inline Chocolatey release tag guard #447
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
| # Gitleaks: secret scanning on push/PR (blocks accidental token commits). | |
| # https://github.com/gitleaks/gitleaks | |
| name: Gitleaks | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| scan: | |
| runs-on: [self-hosted, Linux, X64, iptvtunerr] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install Gitleaks | |
| run: bash scripts/install-ci-tools.sh gitleaks | |
| - name: Run Gitleaks | |
| run: | | |
| tmp="$(mktemp -d)" | |
| trap 'rm -rf "$tmp"' EXIT | |
| git archive HEAD | tar -x -C "$tmp" | |
| gitleaks dir "$tmp" --redact --verbose |