Azure DevOps
Install the Rorix Security Scanner from the Azure DevOps Marketplace. Extension 0.1.7 installs
Rorix.Cli 0.1.7on the build agent.
CI gate: the CLI's blocking exit codes passed its public release checks. Validate this Marketplace task in your Azure DevOps organization before making it a required check; the extension has not completed a customer-controlled pipeline acceptance run.
Run Rorix vulnerability scans as part of your Azure DevOps build and release pipelines.
Marketplace Extension
The supported integration path is the Rorix Security Scanner extension from the Azure DevOps Marketplace:
steps:
- task: RorixScan@0
inputs:
apiKey: $(RORIX_API_KEY)
command: scan
format: sarifThe extension handles CLI installation and authentication automatically. Store RORIX_API_KEY as a secret variable and see the available inputs (command, format, policyFile, path) in the extension's marketplace listing.
Manual CLI Setup
If you prefer to install the CLI yourself, use the script-based approach below.
Basic Scan
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '9.x'
- script: |
dotnet tool install -g Rorix.Cli --version 0.1.7
export PATH="$PATH:$HOME/.dotnet/tools"
rorix scan .
displayName: 'Rorix Vulnerability Scan'
env:
RORIX_API_KEY: $(RORIX_API_KEY)The CLI reads RORIX_API_KEY from the environment, so CI does not need rorix login. Secret variables must be mapped into env explicitly.
Policy Enforcement
Use this example after validating the task and policy against your project baseline.
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '9.x'
- script: |
dotnet tool install -g Rorix.Cli --version 0.1.7
export PATH="$PATH:$HOME/.dotnet/tools"
rorix policy . --config .rorix.yml
displayName: 'Rorix Policy Check'
env:
RORIX_API_KEY: $(RORIX_API_KEY)rorix policy fails the step when .rorix.yml is violated. With the Marketplace task, use command: policy and policyFile: .rorix.yml.
Setting Up the API Key
Store your Rorix API key securely using Azure DevOps Variable Groups:
- Go to Pipelines then Library in your Azure DevOps project
- Create a new Variable Group or use an existing one
- Add a variable named
RORIX_API_KEY - Click the lock icon to mark it as a secret
- Link the Variable Group to your pipeline:
variables:
- group: rorixSBOM Generation
Generate an SBOM artifact as part of your build:
steps:
- script: |
dotnet tool install -g Rorix.Cli --version 0.1.7
export PATH="$PATH:$HOME/.dotnet/tools"
rorix sbom --format cyclonedx --output $(Build.ArtifactStagingDirectory)/sbom.json
displayName: 'Generate SBOM'
env:
RORIX_API_KEY: $(RORIX_API_KEY)
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)/sbom.json'
artifactName: 'sbom'