Skip to content

Commit 6d980df

Browse files
authored
Merge branch 'main' into patch-1
2 parents 51bb101 + 760a561 commit 6d980df

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

content/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-codeql-code-scanning-in-your-ci-system.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ Analyzes the code in the {% data variables.product.prodname_codeql %} databases
147147
| <nobr>`--checkout-path`</nobr> | | The path to the checkout of your repository. The default is the current working directory. |
148148
| `--no-upload` | | None. Stops the {% data variables.product.prodname_codeql_runner %} from uploading the results to {% data variables.product.product_location %}. |
149149
| `--output-dir` | | Directory where the output SARIF files are stored. The default is in the directory of temporary files. |
150+
| `--ram` | | Amount of memory to use when running queries. The default is to use all available memory. |
151+
| `--no-add-snippets` | | None. Includes code snippets in the SARIF output. |
152+
| `--threads` | | Number of threads to use when running queries. The default is to use all available cores. |
150153
| `--temp-dir` | | Directory where temporary files are stored. The default is _./codeql-runner_. |
151154
| `--debug` | | None. Prints more verbose output. |
152155
| `-h`, `--help` | | None. Displays help for the command. |

middleware/set-fastly-cache-headers.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
const FASTLY_TTL = process.env.FASTLY_TTL || String(60 * 60 * 24) // 24 hours
22
const STALE_TTL = String(60 * 10) // 10 minutes
33

4+
const BYPASS_FASTLY = process.env.TEST_BYPASS_FASTLY === 'true'
5+
const BYPASS_PRODUCTS = /^\/([a-z]{2})\/([a-z0-9._-]+@[a-z0-9._-]+\/)?(discussions|packages|actions)(\/.*|$)/i
6+
47
module.exports = (req, res, next) => {
8+
// Test bypassing Fastly for all pages inside of the Discussions product
9+
if (BYPASS_FASTLY && BYPASS_PRODUCTS.test(req.originalUrl)) {
10+
res.set({
11+
'surrogate-control': 'private, no-store',
12+
'cache-control': 'private, no-store'
13+
})
14+
return next()
15+
}
16+
517
res.set({
618

719
// Say you want Fastly to cache your content but you don't want it cached by browsers.

0 commit comments

Comments
 (0)