Skip to content

Commit

Permalink
fix: properly set env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
parth-deepsource committed Jan 16, 2024
1 parent 74289ac commit 9f8e0dc
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions analyzers/dart-analyze/CI/azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,19 @@ trigger:
pool:
vmImage: "ubuntu-latest"

variables:
- name: DEEPSOURCE_DSN
value: $(DEEPSOURCE_DSN)

stages:
- stage: scan_and_report
jobs:
- job: scan_and_report
displayName: "Scan and Report"
steps:
- script: |
sudo apt update
sudo apt install apt-transport-https
sudo apt-get update
sudo apt-get install apt-transport-https
wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/dart.gpg
echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
sudo apt update
sudo apt install -y dart
sudo apt-get update
sudo apt-get install -y dart
displayName: "Setup Dart"
- checkout: self
Expand All @@ -39,3 +35,5 @@ stages:
curl -sSL https://deepsource.io/cli | sh
./bin/deepsource report --analyzer dart-analyze --analyzer-type community --value-file ./dart_analyze.sarif
displayName: "Report to DeepSource"
env:
DEEPSOURCE_DSN: $(DEEPSOURCE_DSN)

0 comments on commit 9f8e0dc

Please sign in to comment.