Merge pull request #4 from arichadda/main #35
This file contains 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: test-secret-scan | |
on: [push, pull_request] | |
jobs: | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Checkout Test Data | |
uses: actions/checkout@v4 | |
with: | |
repository: trufflesecurity/test_keys | |
path: test_keys | |
clean: false | |
- name: Scan Test Data | |
id: scan | |
uses: ./secret-scan | |
with: | |
scan-path: ${{ github.workspace }}/test_keys | |
fail-on-found: false | |
- name: Fail if not found | |
if: steps.scan.outputs.verified-secrets != 4 | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
core.setFailed('Incorrect number of secrets found.') |