Skip to content

Update actions/checkout action to v4 #37

Update actions/checkout action to v4

Update actions/checkout action to v4 #37

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.')