evanharmon1 is running Security Actions #20
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: Security | |
run-name: ${{ github.actor }} is running Security Actions | |
on: [pull_request] | |
jobs: | |
security: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Triggered by a ${{ github.event_name }} event." | |
- uses: actions/checkout@v3 | |
# E.g., to check for my `~/Local/.secret` file | |
- name: Custom check for secret files | |
run: ./osConfig/shell/bin/check_for_pattern.sh . "*secret*" | |
- name: Install Whispers | |
run: sudo pip install whispers | |
# Use whispers to check repo for unecrypted secrets, passwords, etc. | |
- name: Run whispers | |
run: whispers --config test/whisperConfig.yml --severity BLOCKER,CRITICAL . > /tmp/scan_output.json | |
# Upload Artifacts | |
- name: Upload the scan output | |
uses: actions/upload-artifact@v3 | |
with: | |
name: scan_results | |
path: /tmp/scan_output.json | |
retention-days: 7 |