
Sohlae (Community Member) asked a question.
Is the software composition analysis (SCA) for Veracode available for integration with Azure DevOps? I found this document but it seems to be for static analysis only.

Sohlae (Community Member) asked a question.
Is the software composition analysis (SCA) for Veracode available for integration with Azure DevOps? I found this document but it seems to be for static analysis only.

@Sohlae (Community Member)
For SCA Agent-based scans:
Set up and agent scan and workspace
Linux/Mac agent pools
- task: CmdLine@2
inputs:
script: |
export SRCCLR_API_TOKEN=$(SRCCLR_API_TOKEN)
export SRCCLR_SCM_URI=$(Build.Repository.Uri)
export SRCCLR_SCM_REF=$(Build.SourceBranchName)
export SRCCLR_SCM_REF_TYPE="branch"
export SRCCLR_SCM_REV=$(Build.SourceVersion)
curl -sSL https://download.sourceclear.com/ci.sh | bash -s – scan --allow-dirty --update-advisor --uri-as-name || true
displayName: 'Veracode SCA - Agent-Based Scan'
Windows
$env:SRCCLR_API_TOKEN
$env:SRCCLR_API_TOKEN='$(SRCCLR_API_TOKEN)'
$env:SRCCLR_SCM_URI='$(Build.Repository.Uri)'
$env:SRCCLR_SCM_REF='$(Build.SourceBranchName)'
$env:SRCCLR_SCM_REF_TYPE='branch'
$env:SRCCLR_SCM_REV='$(Build.SourceVersion)'
Set-ExecutionPolicy AllSigned -Scope Process -Force
$ProgressPreference = "silentlyContinue"; iex ((New-Object System.Net.WebClient).DownloadString('https://download.sourceclear.com/ci.ps1'))
srcclr scan $(local path that you app is in)
---
Note: always review the pre requeriments for your language, example:
.NET >> https://docs.veracode.com/r/c_sc_net
Java >> https://docs.veracode.com/r/c_sc_java
JavaScript >> https://docs.veracode.com/r/c_sc_javascript

@lucas.ferreira (M3Corp), there doesn't seem to be an option for Azure DevOps in the Integration Options section.

@Sohlae (Community Member) The tutorial provided above is the "offical" manner. You can use a community extensions task too. But remember, these extensions are not mainted and oficially supported by Veracode.
https://marketplace.visualstudio.com/items?itemName=gattjoe.VeracodeScaAdoExtension
This make sense for you?

I would prefer to stick with the official way of doing this. I tried to generate a token using Travis CI and added it under the SRCCLR_API_TOKEN as you have instructed, however I received this error.
There was a problem authenticating with Veracode SCA. Please double check your Veracode SCA agent credentials or the value of the env variable "SRCCLR_API_TOKEN".
Can you help me with this, please?


Ask the Community
Get answers, share a use case, discuss your favorite features, or get input from the community.
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.
.png)
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
@Sohlae (Community Member)
For SCA Agent-based scans:
Set up and agent scan and workspace
Linux/Mac agent pools
- task: CmdLine@2
inputs:
script: |
export SRCCLR_API_TOKEN=$(SRCCLR_API_TOKEN)
export SRCCLR_SCM_URI=$(Build.Repository.Uri)
export SRCCLR_SCM_REF=$(Build.SourceBranchName)
export SRCCLR_SCM_REF_TYPE="branch"
export SRCCLR_SCM_REV=$(Build.SourceVersion)
curl -sSL https://download.sourceclear.com/ci.sh | bash -s – scan --allow-dirty --update-advisor --uri-as-name || true
displayName: 'Veracode SCA - Agent-Based Scan'
Windows
$env:SRCCLR_API_TOKEN
$env:SRCCLR_API_TOKEN='$(SRCCLR_API_TOKEN)'
$env:SRCCLR_SCM_URI='$(Build.Repository.Uri)'
$env:SRCCLR_SCM_REF='$(Build.SourceBranchName)'
$env:SRCCLR_SCM_REF_TYPE='branch'
$env:SRCCLR_SCM_REV='$(Build.SourceVersion)'
Set-ExecutionPolicy AllSigned -Scope Process -Force
$ProgressPreference = "silentlyContinue"; iex ((New-Object System.Net.WebClient).DownloadString('https://download.sourceclear.com/ci.ps1'))
srcclr scan $(local path that you app is in)
---
Note: always review the pre requeriments for your language, example:
.NET >> https://docs.veracode.com/r/c_sc_net
Java >> https://docs.veracode.com/r/c_sc_java
JavaScript >> https://docs.veracode.com/r/c_sc_javascript