Skip to content

Commit

Permalink
test: gitleaks
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmueller committed Jul 25, 2023
1 parent c7adb17 commit 8c8c713
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: gitleaks-scan
on:
workflow_dispatch:
push:
jobs:
gitleaks-scan:
uses: button-inc/button-shared-gh-actions/.github/workflows/scan-code-gitleaks.yml@develop
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
gitleaks-license: ${{ secrets.GITLEAKS_LICENSE}}
2 changes: 1 addition & 1 deletion .github/workflows/owasp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: zap-scan
on:
workflow_dispatch:
push:
# push:
jobs:
zap-scan:
uses: button-inc/button-shared-gh-actions/.github/workflows/scan-code-owasp-zap.yml@develop
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: sonarcloud-scan
on:
workflow_dispatch:
push:
# push:
jobs:
sonarcloud-scan:
uses: button-inc/button-shared-gh-actions/.github/workflows/scan-code-sonarcloud.yml@develop
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: ./.bin/install-gitleaks-linux-x64.sh
- run: ./gitleaks detect --exit-code 0 --report-format sarif --report-path "gitleaks.sarif"
- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'gitleaks.sarif'
uses: ./.github/workflows/gitleaks.yaml
# - run: ./.bin/install-gitleaks-linux-x64.sh
# - run: ./gitleaks detect --exit-code 0 --report-format sarif --report-path "gitleaks.sarif"
# - uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: 'gitleaks.sarif'

jest:
needs: [install-test-env]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: trivy-scan
on:
workflow_dispatch:
push:
# push:
jobs:
trivy-scan:
uses: button-inc/button-shared-gh-actions/.github/workflows/scan-code-trivy.yml@develop

0 comments on commit 8c8c713

Please sign in to comment.