File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 91
91
# Find the correct path to the codeql executable and update the PATH or use it directly in subsequent commands
92
92
# This step is crucial and might need adjustment based on the actual structure of the CodeQL CLI zip file
93
93
# Assuming codeql is in /root/codeql/codeql after extraction
94
- EXECUTABLE_PATH="/root/codeql/codeql"
94
+ EXECUTABLE_PATH="/root/codeql/codeql/codeql "
95
95
96
96
# Optionally, update the PATH in a way that's guaranteed to work for non-interactive shells
97
97
docker exec $CONTAINER_NAME bash -c "echo 'export PATH=\$PATH:$EXECUTABLE_PATH' > /etc/profile.d/codeql.sh"
@@ -101,7 +101,7 @@ jobs:
101
101
- name : codeql-init
102
102
shell : bash
103
103
run : |
104
- docker exec hostsvc-link bash -c "echo 'export PATH=\$PATH:/root/codeql/codeql' > /etc/profile.d/codeql.sh"
104
+ docker exec hostsvc-link bash -c "echo 'export PATH=\$PATH:/root/codeql/codeql/codeql ' > /etc/profile.d/codeql.sh"
105
105
docker exec hostsvc-link bash -c "codeql database create my-codeql-database --language=csharp"
106
106
107
107
- name : manual-build-project-service
@@ -121,7 +121,7 @@ jobs:
121
121
- name : codeql-analyze
122
122
shell : bash
123
123
run : |
124
- docker exec hostsvc-link bash -c "echo 'export PATH=\$PATH:/root/codeql/codeql' > /etc/profile.d/codeql.sh"
124
+ docker exec hostsvc-link bash -c "echo 'export PATH=\$PATH:/root/codeql/codeql/codeql ' > /etc/profile.d/codeql.sh"
125
125
docker exec hostsvc-link bash -c "codeql database analyze my-codeql-database security-extended,security-and-quality --format=csv --output=/var/spacedev/tmp/analysis-results.csv"
126
126
127
127
- name : Upload analysis results
You can’t perform that action at this time.
0 commit comments