You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Adding codeql code scanning to repo
* Update .github/workflows/codeql.yml to use only ubuntu-latest for Go
language build mode
* chore: Update GOPATH on codeql.yml
* Attempt to fix GOPATH
* debug
* debug
* chore: Update GO111MODULE
* chore: Update GOPATH and repo root path in codeql.yml
* revert
* adding more codeql queries
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
35
+
runs-on: ${{ matrix.os }}
36
+
env:
37
+
GOPATH: ${{ github.workspace }}/go
38
+
39
+
timeout-minutes: 360
40
+
permissions:
41
+
# required for all workflows
42
+
security-events: write
43
+
44
+
# required to fetch internal or private CodeQL packs
45
+
packages: read
46
+
47
+
# only required for workflows in private repositories
48
+
actions: read
49
+
contents: read
50
+
51
+
strategy:
52
+
fail-fast: false
53
+
matrix:
54
+
include:
55
+
- language: go
56
+
build-mode: manual
57
+
os : [ubuntu-latest]
58
+
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
59
+
# Use `c-cpp` to analyze code written in C, C++ or both
60
+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
61
+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
62
+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
63
+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
64
+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
65
+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
66
+
steps:
67
+
- run : pwd
68
+
- name: Setup Go
69
+
uses: actions/setup-go@v5
70
+
with:
71
+
go-version: '1.22.2'
72
+
73
+
- name: Checkout repository
74
+
uses: actions/checkout@v4
75
+
76
+
# Initializes the CodeQL tools for scanning.
77
+
- name: Initialize CodeQL
78
+
uses: github/codeql-action/init@v3
79
+
with:
80
+
languages: ${{ matrix.language }}
81
+
build-mode: ${{ matrix.build-mode }}
82
+
# If you wish to specify custom queries, you can do so here or in a config file.
83
+
# By default, queries listed here will override any specified in a config file.
84
+
# Prefix the list here with "+" to use these queries and those in the config file.
85
+
86
+
# For more details on CodeQL's query packs, refer to: 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
87
+
queries: security-extended,security-and-quality
88
+
89
+
# If the analyze step fails for one of the languages you are analyzing with
90
+
# "We were unable to automatically build your code", modify the matrix above
91
+
# to set the build mode to "manual" for that language. Then modify this step
92
+
# to build your code.
93
+
# ℹ️ Command-line programs to run using the OS shell.
94
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
0 commit comments