Merge pull request #93 from advanced-security/more-new-patterns #407
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: Results Validation | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Token | |
id: get_workflow_token | |
uses: peter-murray/workflow-application-token-action@dc0413987a085fa17d19df9e47d4677cf81ffef3 #v3.0.0 | |
with: | |
application_id: ${{ secrets.ADVANCED_SECURITY_APP_ID }} | |
application_private_key: ${{ secrets.ADVANCED_SECURITY_APP_KEY }} | |
- name: Validate results against snapshot | |
uses: advanced-security/secret-scanning-tools@v1 | |
with: | |
mode: validate | |
token: ${{ steps.get_workflow_token.outputs.token }} |