Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Merge pull request #54 from CDCgov/story-1075-sonar_this_time_with_fe…
Browse files Browse the repository at this point in the history
…eling

1075: SonarCloud
  • Loading branch information
halprin authored Jun 13, 2024
2 parents 61a8640 + af38b4a commit 52c66dc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
steps:

- uses: actions/checkout@v4
with:
fetch-depth: 0 # helps with Sonar scanning

- uses: actions/setup-go@v5
with:
Expand All @@ -45,6 +47,21 @@ jobs:
working-directory: operations
run: terraform fmt -recursive -check

- name: Unit Tests with Code Coverage
run: make unitTests

- name: Sonar
uses: sonarsource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SFTP_INGESTION_SONAR_TOKEN }}
with:
projectBaseDir: src
args: >
-Dsonar.projectKey=CDCgov_reportstream-sftp-ingestion
-Dsonar.organization=cdcgov
-Dsonar.go.coverage.reportPaths=coverage.out
securityScanAnalyze:
name: CodeQL Security Scan
uses: ./.github/workflows/codeql_reusable.yml
Expand Down

0 comments on commit 52c66dc

Please sign in to comment.