@@ -48,60 +48,12 @@ jobs:
48
48
analyze :
49
49
if : ${{ needs.checks.outputs.docs_only != 'true' }}
50
50
needs : [checks]
51
+ name : Analyze
51
52
permissions :
52
53
actions : read # for github/codeql-action/init to get workflow details
53
54
contents : read # for actions/checkout to fetch code
55
+ packages : read
54
56
security-events : write # for github/codeql-action/autobuild to send a status report
55
- name : Analyze
56
- runs-on : ubuntu-22.04
57
-
58
- strategy :
59
- fail-fast : false
60
- matrix :
61
- language : ["go", "python"]
62
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
63
- # Use only 'java' to analyze code written in Java, Kotlin or both
64
- # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
65
- # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
66
-
67
- steps :
68
- - name : Checkout repository
69
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
70
-
71
- # Initializes the CodeQL tools for scanning.
72
- - name : Initialize CodeQL
73
- uses : github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
74
- with :
75
- languages : ${{ matrix.language }}
76
- # If you wish to specify custom queries, you can do so here or in a config file.
77
- # By default, queries listed here will override any specified in a config file.
78
- # Prefix the list here with "+" to use these queries and those in the config file.
79
-
80
- # 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
81
- # queries: security-extended,security-and-quality
82
-
83
- - name : Setup Golang Environment
84
- uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
85
- with :
86
- go-version-file : go.mod
87
- if : matrix.language == 'go'
88
-
89
- # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
90
- # If this step fails, then you should remove it and run the build manually (see below)
91
- - name : Autobuild
92
- uses : github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
93
-
94
- # ℹ️ Command-line programs to run using the OS shell.
95
- # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
96
-
97
- # If the Autobuild fails above, remove it and uncomment the following three lines.
98
- # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
99
-
100
- # - run: |
101
- # echo "Run, Build Application using script"
102
- # ./location_of_script_within_repo/buildscript.sh
103
-
104
- - name : Perform CodeQL Analysis
105
- uses : github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
106
- with :
107
- category : " /language:${{matrix.language}}"
57
+ uses : nginxinc/compliance-rules/.github/workflows/codeql.yml@c903bfe6c668eaba362cde6a7882278bc1564401 # v0.1
58
+ with :
59
+ requested_languages : go,python
0 commit comments