mirror of
https://github.com/github/codeql-action.git
synced 2025-12-31 19:50:32 +08:00
C++: Make C++ TRAP caching conditional on TRAP caching being enabled in general.
This commit is contained in:
committed by
GitHub
parent
f1915cce98
commit
a246aaa40c
@@ -449,7 +449,8 @@ async function run() {
|
||||
`Environment variable ${envVar} already set. Not en/disabling CodeQL C++ TRAP caching support`,
|
||||
);
|
||||
} else if (
|
||||
await features.getValue(Feature.CppTrapCachingEnabled, codeql)
|
||||
getTrapCachingEnabled() &&
|
||||
(await features.getValue(Feature.CppTrapCachingEnabled, codeql))
|
||||
) {
|
||||
logger.info("Enabling CodeQL C++ TRAP caching support");
|
||||
core.exportVariable(envVar, "true");
|
||||
|
||||
Reference in New Issue
Block a user