Skip to content

Instantly share code, notes, and snippets.

@prabhu
Created July 18, 2020 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prabhu/c52ff83557496396f120ce278e7a9248 to your computer and use it in GitHub Desktop.
Save prabhu/c52ff83557496396f120ce278e7a9248 to your computer and use it in GitHub Desktop.
Snippet to run a command based on the presence of a label
on:
label:
types: [created]
steps:
- name: Analyze with NG SAST
if: ${{ contains(github.context.payload.pull_request.labels.*.name, 'Ready for AppSec') }}
run: |
sl analyze --app ShiftLeftHSLGo14 --tag branch=${GITHUB_REF} --go --cpg $(pwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment