Skip to content

Commit

Permalink
Updated API endpoint configs (#79)
Browse files Browse the repository at this point in the history
* update: configure API endpoints
  • Loading branch information
mcsnyk authored Apr 19, 2023
1 parent 12338be commit 9892064
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
9 changes: 6 additions & 3 deletions AzurePipelines/AzurePipelines-npm-generic-html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ steps:
- script: |
npm install -g snyk snyk-to-html
# This OPTIONAL step will configure the Snyk CLI to connect to the EU instance of Snyk.
# snyk config set use-base64-encoding=true
# This OPTIONAL step will configure the Snyk CLI to connect to the EU or AU instance of Snyk.
# Docs: https://docs.snyk.io/more-info/data-residency-at-snyk#cli-and-ci-pipelines-urls
# snyk config set endpoint='https://app.eu.snyk.io/api'
# snyk config set endpoint='https://app.au.snyk.io/api'
snyk auth $(SNYK_TOKEN)
Expand Down Expand Up @@ -92,4 +94,5 @@ steps:
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: Snyk Reports
artifactName: Snyk Reports

6 changes: 4 additions & 2 deletions AzurePipelines/AzurePipelines-npm-generic-sarif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ steps:
- script: |
npm install --location=global snyk
# This OPTIONAL step will configure the Snyk CLI to connect to the EU instance of Snyk.
# snyk config set use-base64-encoding=true
# This OPTIONAL step will configure the Snyk CLI to connect to the EU or AU instance of Snyk.
# Docs: https://docs.snyk.io/more-info/data-residency-at-snyk#cli-and-ci-pipelines-urls
# snyk config set endpoint='https://app.eu.snyk.io/api'
# snyk config set endpoint='https://app.au.snyk.io/api'
snyk auth $(SNYK_TOKEN)
displayName: 'snyk install & auth'
Expand Down
4 changes: 4 additions & 0 deletions AzurePipelines/AzurePipelines-plugin-generic-sarif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ steps:
testType: 'app'
# This configures a pure local scan - results are not uploaded.
# If this is desired, set `monitorWhen` to 'always' and remove the `--sarif-file-output` argument.

# This OPTIONAL step will configure the Snyk CLI to connect to the EU or AU instance of Snyk.
# Docs: https://docs.snyk.io/more-info/data-residency-at-snyk#cli-and-ci-pipelines-urls

# If you need to connect to the EU Instance, add --API=https://app.eu.snyk.io/api to additionalArguments
# If you need to connect to the AU Instance, add --API=https://app.au.snyk.io/api to additionalArguments

monitorWhen: 'never'
additionalArguments: '--all-projects --sarif-file-output=CodeAnalysisLogs/snyk-open-source.sarif'
Expand Down

0 comments on commit 9892064

Please sign in to comment.