Skip to content

Commit

Permalink
Update README.md for AzureDevOps (#353)
Browse files Browse the repository at this point in the history
* Update README.md

Add AzureDevops installation

* Update README.md

Co-authored-by: Anton Grübel <[email protected]>

---------

Co-authored-by: Anton Grübel <[email protected]>
  • Loading branch information
JamesWoolfenden and gruebel authored Mar 9, 2023
1 parent 02146dc commit e8da739
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,26 @@ jobs:
uses: bridgecrewio/yor-action@main
```
Azure DevOps Pipeline
Install Yor with:
```yaml
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
sudo tar -xf yor.tar.gz -C /usr/bin/
rm yor.tar.gz
sudo chmod +x /usr/bin/yor
echo 'alias yor="/usr/bin/yor"' >> ~/.bashrc
yor --version
```
Pre-commit
```yaml
Expand Down

0 comments on commit e8da739

Please sign in to comment.