Skip to content

Commit

Permalink
sast push to SaaS
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyaccuknox authored Nov 20, 2024
1 parent c62c92b commit 4e91af7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/sast-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Push SonarQube scans to SaaS

on:
push:
branches:
- main

env:
AK_URL: "https://cspm.accuknox.com"
AK_SAST_LABEL: "SAST"

jobs:
scan-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: accuknox/common-gh-actions/actions/sonarqube@main
with:
token: ${{ secrets.SQ_TOKEN }}
qualityGateCheck: 'false'
args: >
-Dsonar.projectKey=knoxctl-website
-Dsonar.sources=.
projectKey: knoxctl-website
pushToSaas: true
ak_url: ${{ env.AK_URL }}
ak_tok: ${{ secrets.AK_PROD_ACCUKNOXTECH_TOKEN }}
tenant_id: ${{ secrets.AK_PROD_ACCUKNOXTECH_TENANT_ID }}
label: ${{ env.AK_SAST_LABEL }}

0 comments on commit 4e91af7

Please sign in to comment.