We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5871c36 commit dfb4943Copy full SHA for dfb4943
src/main.rs
@@ -285,7 +285,7 @@ async fn main() -> Result<()> {
285
// If the action is running in Actions, the SARIF file must be a relative path
286
// This is because we assume that this code is running in a container which mounts
287
// the repository at /github/workspace
288
- if let Ok(_) = std::env::var("CI") {
+ if std::env::var("CI").is_ok() {
289
// If running in a CI environment, set the SARIF as a relative path
290
let relative_path = sarif_output.strip_prefix(&cwd).unwrap_or(&sarif_output);
291
log::debug!(
0 commit comments