Create a.2112122112121221 #102
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: Bot scan | |
on: | |
pull_request_target: | |
types: [opened, reopened, synchronize, edited] | |
issues: | |
types: [opened, edited, milestoned] | |
permissions: | |
issues: write | |
pull-requests: write | |
jobs: | |
Snyk_scanning: | |
name: Snyk Bot scan | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR code (source branch) | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Snyk Bot scan | |
run: | | |
rm -rf node_modules | |
rm -f package-lock.json | |
npm install | |
echo "Downloading and authenticating Snyk CLI..." | |
curl -Lo ./snyk "https://github.com/snyk/snyk/releases/download/v1.1100.0/snyk-linux" | |
chmod +x snyk | |
./snyk auth ${{ secrets.SNYK_TOKEN }} | |
echo "Running Snyk test and monitor..." | |
./snyk test --all-projects --color --json || true | |
./snyk monitor --all-projects || true | |
TruffleHog_scanning: | |
name: TruffleHog Bot scan | |
continue-on-error: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: TruffleHog Bot scan | |
uses: trufflesecurity/TruffleHog-Enterprise-Github-Action@main | |
with: | |
args: --fail-verified ${{ github.event.pull_request.head.ref }} HEAD --json | |
BotCheck: | |
name: Bot scan | |
continue-on-error: true | |
permissions: write-all | |
runs-on: ubuntu-latest | |
needs: [Snyk_scanning, TruffleHog_scanning] | |
steps: | |
- uses: itsarraj/pr-scan-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |