Skip to content

Commit

Permalink
Revert - Upload result to GHAS only if JAS entitled (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas authored Jan 21, 2025
1 parent c88a3a1 commit 308969c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scanrepository/scanrepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,9 @@ func (cfp *ScanRepositoryCmd) scanAndFixProject(repository *utils.Repository) (i
totalFindings += findingCount
}

if scanResults.EntitledForJas && repository.GitProvider.String() == vcsutils.GitHub.String() {
if repository.GitProvider.String() == vcsutils.GitHub.String() {
// Uploads Sarif results to GitHub in order to view the scan in the code scanning UI
// Currently available on GitHub only and JFrog Advance Security package
// Only if Jas entitlement is available
// Currently available on GitHub only
if err = utils.UploadSarifResultsToGithubSecurityTab(scanResults, repository, cfp.scanDetails.BaseBranch(), cfp.scanDetails.Client()); err != nil {
log.Warn(err)
}
Expand Down

0 comments on commit 308969c

Please sign in to comment.