Bump @napi-rs/cli from 2.18.4 to 3.7.0 in /sdk/node #48
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: Secret scan | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| gitleaks: | |
| name: Gitleaks | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install gitleaks | |
| run: | | |
| set -euo pipefail | |
| GITLEAKS_VERSION=8.21.2 | |
| GITLEAKS_TARBALL="gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | |
| GITLEAKS_SHA256="5bc41815076e6ed6ef8fbecc9d9b75bcae31f39029ceb55da08086315316e3ba" | |
| mkdir -p .tools/gitleaks | |
| curl -fsSL -o ".tools/gitleaks/${GITLEAKS_TARBALL}" \ | |
| "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/${GITLEAKS_TARBALL}" | |
| echo "${GITLEAKS_SHA256} .tools/gitleaks/${GITLEAKS_TARBALL}" | sha256sum -c - | |
| tar -xzf ".tools/gitleaks/${GITLEAKS_TARBALL}" -C .tools/gitleaks gitleaks | |
| sudo install -m 0755 .tools/gitleaks/gitleaks /usr/local/bin/gitleaks | |
| rm -rf .tools/gitleaks | |
| gitleaks version | |
| - name: Run gitleaks | |
| run: gitleaks detect --source . --config .gitleaks.toml --no-banner --redact --verbose --exit-code 1 |