This repository was archived by the owner on Sep 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 4646 - language : actions
4747 build-mode : none
4848 - language : c-cpp
49- build-mode : autobuild
49+ build-mode : manual
5050 - language : java-kotlin
5151 build-mode : none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
5252 - language : javascript-typescript
@@ -94,13 +94,10 @@ jobs:
9494 # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
9595 - if : matrix.build-mode == 'manual'
9696 shell : bash
97+ # Our C code is only fixtures that aren't compilable. Automated corporate policy doesn't care,
98+ # so we'll compile a "hello world" program for CodeQL to scan to make automation happy.
9799 run : |
98- echo 'If you are using a "manual" build mode for one or more of the' \
99- 'languages you are analyzing, replace this with the commands to build' \
100- 'your code, for example:'
101- echo ' make bootstrap'
102- echo ' make release'
103- exit 1
100+ echo -e '#include <stdio.h>\nint main() {\nputs("hello, world");\n}' | gcc -x c -o hello -pipe -
104101
105102 - name : Perform CodeQL Analysis
106103 uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments