OJ-37703: add debug logging messages to agent log #311
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: Secrets detection using detect-secrets | |
on: | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
secrets-detect: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
- name: Install detect-secrets | |
run: pip install detect-secrets | |
- name: Run detect secrets. | |
run: git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -v '.secrets.baseline' | grep -v 'Pipfile.lock' | xargs detect-secrets-hook | |