feat: ci cd pipelien #1
@@ -65,14 +65,21 @@ jobs:
|
||||
secrets:
|
||||
name: Secret scan (gitleaks)
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
# gitleaks is published on GHCR only (not Docker Hub) - pin the version
|
||||
image: ghcr.io/gitleaks/gitleaks:v8.28.0
|
||||
# plain node image: the gitleaks container image has no node, which
|
||||
# breaks node-based actions like actions/checkout
|
||||
container: node:22-bookworm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # gitleaks scans the full history
|
||||
|
||||
- name: Install gitleaks
|
||||
run: |
|
||||
curl -fsSL -o /tmp/gitleaks.tar.gz \
|
||||
https://github.com/gitleaks/gitleaks/releases/download/v8.28.0/gitleaks_8.28.0_linux_x64.tar.gz
|
||||
tar -xzf /tmp/gitleaks.tar.gz -C /usr/local/bin gitleaks
|
||||
gitleaks version
|
||||
|
||||
- name: Scan for leaked secrets
|
||||
run: gitleaks detect --source . --redact --verbose
|
||||
# Already-committed secrets that you've accepted? Add a .gitleaksignore
|
||||
|
||||
Reference in new issue
Block a user