Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add circle ci #1

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
22 changes: 12 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,24 @@ parameters:
default: "latest"

orbs:
circleci-tailscale: threecomma/[email protected]
tailscale: threecomma/[email protected]

jobs:
scan-and-report:
docker:
- image: google/dart:<<pipeline.parameters.dart-tag>>
- image: dart:<<pipeline.parameters.dart-tag>>

steps:
- checkout

- run:
name: Setup Python
command: |
curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.noarmor.gpg | tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/debian/bookworm.tailscale-keyring.list | tee /etc/apt/sources.list.d/tailscale.list
apt update
apt install -y python3 tailscale

- run:
name: Run Dart Analyze
command: dart analyze > dart_analyze.txt || true
Expand All @@ -24,21 +32,15 @@ jobs:
name: Dart Analyze to SARIF
command: |
curl -sSL https://raw.githubusercontent.com/advanced-security/dart-analyzer-sarif/main/dart_analyzer_sarif.py > dart-analyzer-sarif
chmod +x dart-analyzer-sarif
./dart-analyzer-sarif --input dart_analyze.txt --output dart_analyze.sarif
python3 dart-analyzer-sarif dart_analyze.txt dart_analyze.sarif $HOME --repo-uri <<pipeline.project.git_url>> --branch <<pipeline.git.branch>> --revision-id <<pipeline.git.revision>>

- connect
- tailscale/connect
- run:
name: Upload SARIF report to DeepSource
environment:
DEEPSOURCE_DSN: $DEEPSOURCE_DSN
command: |
# Install the DeepSource CLI
curl https://deepsource.io/cli | sh

# Set the DEEPSOURCE_DSN environment variable
export DEEPSOURCE_DSN="${DEEPSOURCE_DSN}"

# Send the report to DeepSource
./bin/deepsource report --analyzer dart-analyze --analyzer-type community --value-file ./dart_analyze.sarif

Expand Down
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/example_request.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

7 changes: 0 additions & 7 deletions .github/dependabot.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/dart_analyze.yaml

This file was deleted.