mirror of
https://github.com/github/codeql-action.git
synced 2026-08-05 04:57:19 -05:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1e61ecb0c1 | |||
| 8cccc0664b | |||
| 3a8e1847c5 | |||
| 5c3c29fd3f | |||
| d11b2ce6a3 | |||
| 03450ff6ed | |||
| 571fe400df | |||
| 440ccbd910 | |||
| 6017205208 | |||
| 7c391e9640 |
+7
-1
@@ -2,7 +2,13 @@
|
|||||||
|
|
||||||
## [UNRELEASED]
|
## [UNRELEASED]
|
||||||
|
|
||||||
- Fix `RUNNER_TEMP environment variable must be set` when using runner.
|
No user facing changes.
|
||||||
|
|
||||||
|
## 1.0.4 - 28 Jun 2021
|
||||||
|
|
||||||
|
- Fix `RUNNER_TEMP environment variable must be set` when using runner. [#594](https://github.com/github/codeql-action/pull/594)
|
||||||
|
- Fix couting of lines of code for C# projects. [#586](https://github.com/github/codeql-action/pull/586)
|
||||||
|
|
||||||
## 1.0.3 - 23 Jun 2021
|
## 1.0.3 - 23 Jun 2021
|
||||||
|
|
||||||
No user facing changes.
|
No user facing changes.
|
||||||
|
|||||||
@@ -128,3 +128,11 @@ By default, this will override any queries specified in a config file. If you wi
|
|||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
Read about [troubleshooting code scanning](https://help.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-code-scanning).
|
Read about [troubleshooting code scanning](https://help.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-code-scanning).
|
||||||
|
|
||||||
|
### Note on "missing analysis" message
|
||||||
|
|
||||||
|
The very first time code scanning is run and if it is on a pull request, you will probably get a message mentioning a "missing analysis". This is expected.
|
||||||
|
|
||||||
|
After code scanning has analyzed the code in a pull request, it needs to compare the analysis of the topic branch (the merge commit of the branch you used to create the pull request) with the analysis of the base branch (the branch into which you want to merge the pull request). This allows code scanning to compute which alerts are newly introduced by the pull request, which alerts were already present in the base branch, and whether any existing alerts are fixed by the changes in the pull request. Initially, if you use a pull request to add code scanning to a repository, the base branch has not yet been analyzed, so it's not possible to compute these details. In this case, when you click through from the results check on the pull request you will see the "Missing analysis for base commit SHA-HASH" message.
|
||||||
|
|
||||||
|
For more information and other causes of this message, see [Reasons for the "missing analysis" message](https://docs.github.com/en/code-security/secure-coding/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository#reasons-for-the-missing-analysis-message)
|
||||||
|
|||||||
Generated
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codeql",
|
"name": "codeql",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "CodeQL action",
|
"description": "CodeQL action",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Generated
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codeql-runner",
|
"name": "codeql-runner",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codeql-runner",
|
"name": "codeql-runner",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "CodeQL runner",
|
"description": "CodeQL runner",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+11
-22
@@ -120,20 +120,14 @@ async function createdDBForScannedLanguages(
|
|||||||
if (isScannedLanguage(language)) {
|
if (isScannedLanguage(language)) {
|
||||||
logger.startGroup(`Extracting ${language}`);
|
logger.startGroup(`Extracting ${language}`);
|
||||||
|
|
||||||
let db = util.getCodeQLDatabasePath(config, language);
|
if (language === Language.python) {
|
||||||
|
await setupPythonExtractor(logger);
|
||||||
if (fs.existsFileSync(db)){
|
|
||||||
console.log(`${db} exists already. I am assuming this is intentional...`);
|
|
||||||
else {
|
|
||||||
if (language === Language.python) {
|
|
||||||
await setupPythonExtractor(logger);
|
|
||||||
}
|
|
||||||
|
|
||||||
await codeql.extractScannedLanguage(
|
|
||||||
db,
|
|
||||||
language
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await codeql.extractScannedLanguage(
|
||||||
|
util.getCodeQLDatabasePath(config, language),
|
||||||
|
language
|
||||||
|
);
|
||||||
logger.endGroup();
|
logger.endGroup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -149,15 +143,10 @@ async function finalizeDatabaseCreation(
|
|||||||
const codeql = getCodeQL(config.codeQLCmd);
|
const codeql = getCodeQL(config.codeQLCmd);
|
||||||
for (const language of config.languages) {
|
for (const language of config.languages) {
|
||||||
logger.startGroup(`Finalizing ${language}`);
|
logger.startGroup(`Finalizing ${language}`);
|
||||||
let db = util.getCodeQLDatabasePath(config, language);
|
await codeql.finalizeDatabase(
|
||||||
if (codeql.hasBeenFinalized(db)){
|
util.getCodeQLDatabasePath(config, language),
|
||||||
console.log(`${db} has already been finalized. I am assuming this is intentional...`);
|
threadsFlag
|
||||||
} else {
|
);
|
||||||
await codeql.finalizeDatabase(
|
|
||||||
db,
|
|
||||||
threadsFlag
|
|
||||||
);
|
|
||||||
}
|
|
||||||
logger.endGroup();
|
logger.endGroup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user