Created
July 18, 2020 14:05
-
-
Save prabhu/c52ff83557496396f120ce278e7a9248 to your computer and use it in GitHub Desktop.
Snippet to run a command based on the presence of a label
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
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