Fix lint issues #355
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: Secrets scan | |
| on: push | |
| jobs: | |
| scan: | |
| timeout-minutes: 5 | |
| name: Scan secrets | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup gls | |
| env: | |
| TARGET: x86_64-unknown-linux-gnu | |
| VERSION: "0.1.6" | |
| # From https://github.com/Finatext/gls/releases/download/v${VERSION}/gls-${TARGET}.tar.gz.sha256 | |
| SHA256_SUM: eee14045f8e24fc948d9670eefda02fdff7f7dada2d69a2d43f2e05bf21e2133 | |
| shell: bash | |
| run: | | |
| set -x | |
| curl --silent --show-error --fail --connect-timeout 3 --max-time 10 --retry 3 \ | |
| --location --remote-name \ | |
| "https://github.com/Finatext/gls/releases/download/v${VERSION}/gls-${TARGET}.tar.gz" | |
| echo "${SHA256_SUM} gls-${TARGET}.tar.gz" | sha256sum --check | |
| tar --extract --gzip --file "gls-${TARGET}.tar.gz" --verbose | |
| sudo install gls /usr/local/bin/gls | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| # This need to be done after checkout. | |
| - uses: ./.github/actions/setup_gitleaks | |
| - name: Scan secrets | |
| env: | |
| REPORT_PATH: tmp/report.json | |
| shell: bash | |
| run: | | |
| set -x | |
| mkdir -p tmp | |
| gitleaks git --verbose --exit-code=0 --no-banner \ | |
| --report-format template --report-template dev/jsonextra.json.tmpl \ | |
| --config=dev/gitleaks.toml --report-path="${REPORT_PATH}" | |
| gls apply --config-path=dev/gitleaks-allowlist.toml --report-path="${REPORT_PATH}" |