Skip to content

Commit

Permalink
Attempt manual build
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
  • Loading branch information
hiddeco committed Aug 4, 2023
1 parent 316d7a2 commit 5f7f7cf
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,18 @@ jobs:
# xref: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# xref: https://codeql.github.com/codeql-query-help/go/
queries: security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
- name: Build
run: |
run_codeql_build() {
go_mod_file="$1"
echo "Downloading Go Modules in ${go_mod_file%/*}"
cd "${go_mod_file%/*}"
go mod tidy
${CODEQL_EXTRACTOR_GO_ROOT}/tools/${CODEQL_PLATFORM}/go-extractor ./...
}
export -f run_codeql_build
# Find all go.mod files and execute the command in parallel
find . -type f -name "go.mod" -print0 | parallel -0 -n1 bash -c 'run_codeql_build "$@"' _
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4

0 comments on commit 5f7f7cf

Please sign in to comment.