Skip to content

Commit

Permalink
Update sarif2gl.js
Browse files Browse the repository at this point in the history
FIX link to 'src' folders
  • Loading branch information
jonny64 authored Apr 25, 2024
1 parent 5b9757b commit 8c07c67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sarif2gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const {SDL_BOT_TOKEN
, CI_MERGE_REQUEST_IID
, CI_PIPELINE_URL
, SARIF2GL_SKIP_UNCHANGED
, SARIF2GL_REMOVE_URI_PART
} = process.env
const [_, __, ...sarif_files] = process.argv
const SARIF2GL_NOTE_SIGN = 'sarif2gl'
Expand Down Expand Up @@ -50,7 +51,7 @@ const parse = (sarif) => {
let fix_src = (src) => {
src = src.replace (`file://`, '')
src = src.replace (CI_PROJECT_DIR, '')
src = src.replace (/^\/src\//, '')
src = src.replace (SARIF2GL_REMOVE_URI_PART, '')
src = src.replace (/^\/.build\//, '')
src = src.replace (/^\/builds\//, '')
src = src.replace (/^\//, '')
Expand Down

0 comments on commit 8c07c67

Please sign in to comment.