-- [Configure GitHub Advanced Security Tools in GitHub Enterprise]
What step is required to run a SARIF-compatible (Static Analysis Results Interchange Format) tool on GitHub Actions?
Suggested Answer: A
Get Premium GH-500 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
When using a SARIF-compatible tool within GitHub Actions, it's necessary to explicitly add a step in your workflow to upload the analysis results. This is typically done using the upload-sarif action, which takes the SARIF file generated by your tool and uploads it to GitHub for processing and display in the Security tab. Without this step, the results won't be available in GitHub's code scanning interface.
17 comments · newest first
SK
Skye
1 month ago
I still think D has its place in certain workflows.
TW
Twanna
1 month ago
I agree with Marget. C is the best choice for this.
MA
Marget
1 month ago
True, but C is more specific to SARIF files.
MI
Micaela
2 months ago
But B is simpler, right? Less hassle.
SK
Skye
2 months ago
I lean towards D. Using the CLI could be necessary sometimes.
TW
Twanna
2 months ago
A seems right too. We might need to add a final step.
MA
Marget
2 months ago
I feel like it's C. The action handles it automatically.
MI
Micaela
2 months ago
I think it's B. CodeQL does it by default.
TA
Tawna
3 months ago
Totally agree with A), it’s the only way to ensure results are uploaded!
EL
Eladia
3 months ago
Wait, can you really use the CLI for this?
PU
Pura
3 months ago
C) sounds familiar, but I’m not sure it’s the answer here.
TH
Thaddeus
3 months ago
I thought B) was correct, but I guess it's A).
YU
Yuette
3 months ago
A) is the right choice! You need that final step.
OL
Oliva
3 months ago
I’m leaning towards B because I recall that the CodeQL runner does some automatic uploads, but I’m not completely confident.
LA
Larue
4 months ago
I feel like I saw a question similar to this in practice, and it mentioned the CLI. Could it be D?
SH
Sherly
4 months ago
I remember something about the CodeQL action, so maybe it's C? It seems like it would make sense for it to handle that automatically.
GE
German
4 months ago
I think the answer might be A, but I'm not entirely sure if the workflow needs that final step for SARIF.