Skip to content

Use separate sonarcloud.yaml #6

Use separate sonarcloud.yaml

Use separate sonarcloud.yaml #6

Workflow file for this run

name: Sonarcloud scan
on:
push:
branches:
- master
- release-[0-9]+.[0-9]+
pull_request:
branches:
- master
- release-[0-9]+.[0-9]+
jobs:
gosec:
runs-on: ubuntu-latest
name: GoSec Scan
steps:
- name: Checkout Gatekeeper
uses: actions/checkout@v4
- name: Run Gosec Security Scanner
uses: securego/[email protected]
with:
args: -fmt sonarqube -out gosec.json -stdout -exclude-dir=.go -exclude-dir=test ./...
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: gosec.json
sonarcloud:
needs: [ gosec ]
uses: stolostron/governance-policy-framework/.github/workflows/sonarcloud.yml@main
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}