From 251d3dbbb8ac0c380c4c81926edcc02fa906ef0b Mon Sep 17 00:00:00 2001 From: dduzgun-security Date: Fri, 27 Sep 2024 12:54:42 -0400 Subject: [PATCH] fix: scan build for go --- .github/workflows/security-scan.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index 63e00847fc79..68556a8a8e30 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -7,6 +7,10 @@ on: branches: - main - release/** + paths-ignore: + - 'docs/**' + - 'grafana/**' + - '.changelog/**' pull_request: branches: - main @@ -38,13 +42,9 @@ jobs: name: Setup outputs run: ./.github/scripts/get_runner_classes.sh - get-go-version: - uses: ./.github/workflows/reusable-get-go-version.yml - scan: needs: - setup - - get-go-version runs-on: ${{ fromJSON(needs.setup.outputs.compute-xl) }} # The first check ensures this doesn't run on community-contributed PRs, who # won't have the permissions to run this job. @@ -57,7 +57,7 @@ jobs: - name: Set up Go uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: ${{ needs.get-go-version.outputs.go-version }} + go-version-file: .go-version - name: Clone Security Scanner repo uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 @@ -77,7 +77,7 @@ jobs: - name: SARIF Output shell: bash run: | - cat results.sarif | jq + jq . < results.sarif - name: Upload SARIF file uses: github/codeql-action/upload-sarif@8fd294e26a0e458834582b0fe4988d79966c7c0a # codeql-bundle-v2.18.4