|
1 | 1 | name: "CodeQL Advanced" |
2 | 2 |
|
| 3 | +env: |
| 4 | + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true |
| 5 | + |
3 | 6 | on: |
4 | 7 | push: |
5 | 8 | branches: [ "main" ] |
|
29 | 32 | # - https://gh.io/using-larger-runners (GitHub.com only) |
30 | 33 | # Consider using larger runners or machines with greater resources for possible analysis time improvements. |
31 | 34 | runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} |
32 | | - # Use a container with G4 installed |
33 | | - container: ghcr.io/gemc/g4install:11.4.0-ubuntu-24.04 |
34 | | - |
35 | 35 | permissions: |
36 | 36 | # required for all workflows |
37 | 37 | security-events: write |
|
50 | 50 | - language: actions |
51 | 51 | build-mode: none |
52 | 52 | - language: c-cpp |
53 | | - build-mode: manual |
| 53 | + build-mode: none |
54 | 54 | - language: python |
55 | 55 | build-mode: none |
56 | 56 | # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' |
|
99 | 99 | # 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 |
100 | 100 | # queries: security-extended,security-and-quality |
101 | 101 |
|
102 | | - # If the analyze step fails for one of the languages you are analyzing with |
103 | | - # "We were unable to automatically build your code", modify the matrix above |
104 | | - # to set the build mode to "manual" for that language. Then modify this step |
105 | | - # to build your code. |
106 | | - # ℹ️ Command-line programs to run using the OS shell. |
107 | | - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
108 | | - - if: matrix.build-mode == 'manual' |
109 | | - shell: bash |
110 | | - env: |
111 | | - GEMC_SKIP_PYTHON_ENV_INSTALL: "1" |
112 | | - run: | |
113 | | - echo "Starting manual build for CodeQL..." |
114 | | -
|
115 | | - apt-get update |
116 | | - apt-get install -y python3-venv |
117 | | -
|
118 | | - export DOCKER_ENTRYPOINT_SOURCE_ONLY=1 |
119 | | - . /usr/local/bin/docker-entrypoint.sh |
120 | | - module load geant4 |
121 | | -
|
122 | | - ./ci/build.sh |
123 | | -
|
124 | | - echo "Manual build finished." |
125 | | -
|
126 | 102 | - name: Perform CodeQL Analysis |
127 | 103 | uses: github/codeql-action/analyze@v4 |
128 | 104 | env: |
|
0 commit comments