Fixed Semgrep detection issue #22
Workflow file for this run
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: Detect Secrets Scan | |
on: | |
workflow_dispatch: | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
detect-secrets: | |
name: Detect Secrets Scan | |
runs-on: ubuntu-latest | |
container: | |
image: python:latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Change Owner of Container Working Directory | |
run: chown root:root . | |
- name: Install detect-secrets | |
run: pip install detect-secrets | |
- name: Run detect-secrets-hook | |
shell: bash | |
run: | | |
git ls-files -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline * |