Created
February 28, 2023 17:50
-
-
Save JamesWoolfenden/48f3c4bb67d078f6dffeebde4b41c1e7 to your computer and use it in GitHub Desktop.
install yor
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
trigger: | |
- main | |
pool: | |
vmImage: ubuntu-latest | |
steps: | |
- script: curl -s -k https://api.github.com/repos/bridgecrewio/yor/releases/latest | jq '.assets[] | select(.name | contains("linux_386")) | select(.content_type | contains("gzip")) | .browser_download_url' -r | awk '{print "curl -L -k " $0 " -o yor.tar.gz"}' | sh | |
- script: sudo tar -xf yor.tar.gz -C /usr/bin/ | |
- script: rm yor.tar.gz | |
- script: sudo chmod +x /usr/bin/yor | |
- script: echo 'alias yor="/usr/bin/yor"' >> ~/.bashrc | |
- script: /usr/bin/yor --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment