Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3100e1e
move check to calling function
May 24, 2023
dddabd0
add rebuilt lib
May 24, 2023
153cab0
jsdoc for fixInvalidNotificationsInFile
May 24, 2023
636b9ea
add rebuilt lib
May 24, 2023
0962265
Merge branch 'main' into fixInvalidNotifications-shortcut
henrymercer May 24, 2023
8f9b20b
Clarify how to update workflows
jsoref May 24, 2023
dba4f66
Grant security-events: write permissions
jsoref May 23, 2023
59d27da
Update changelog and version after v2.3.4
invalid-email-address May 24, 2023
1319d54
Update checked-in dependencies
invalid-email-address May 24, 2023
11ea309
Merge pull request #1701 from github/mergeback/v2.3.4-to-main-f0e3dfb3
angelapwen May 24, 2023
5f061ca
Merge pull request #1697 from github/fixInvalidNotifications-shortcut
henrymercer May 25, 2023
3da4cbf
Fix GitHub Actions email
henrymercer May 25, 2023
a5879b7
Tolerate forks of github/codeql-action
jsoref May 23, 2023
789f65c
Improving handling of uploadFailedSarifResult -> [Object object]
jsoref May 23, 2023
cc5f2fb
Gracefully handle decodeURIComponent failure
jsoref May 23, 2023
1023a08
Merge pull request #1694 from jsoref/fixes
henrymercer May 25, 2023
41499f5
Merge pull request #1702 from github/henrymercer/update-github-action…
henrymercer May 25, 2023
4a409ac
Link to CONTRIBUTING doc from README
henrymercer May 25, 2023
50bc388
Update Node version
henrymercer May 25, 2023
8d7f61b
Update npm version
henrymercer May 25, 2023
3912995
Merge pull request #1704 from github/henrymercer/contributions-updates
henrymercer May 25, 2023
9c5706e
Avoid throwing validation error on invalid URIs
aeisenberg May 25, 2023
42add7b
Update changelog
aeisenberg May 25, 2023
d3314cc
Merge pull request #1705 from github/aeisenberg/location-uri-schema-fix
aeisenberg May 25, 2023
ff82fd0
Update changelog for v2.3.5
github-actions[bot] May 25, 2023
15f9b00
Apply suggestions from code review
aeisenberg May 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
jsdoc for fixInvalidNotificationsInFile
  • Loading branch information
Stephan Brandauer committed May 24, 2023
commit 153cab09da93f6b273bb28b5a4ca876a028d2e1e
10 changes: 10 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,16 @@ export function fixInvalidNotifications(
return newSarif;
}

/**
* Removes duplicates from the sarif file.
*
* When `CODEQL_ACTION_DISABLE_DUPLICATE_LOCATION_FIX` is set to true, this will
* simply rename the input file to the output file. Otherwise, it will parse the
* input file as JSON, remove duplicate locations from the SARIF notification
* objects, and write the result to the output file.
*
* For context, see documentation of:
* `CODEQL_ACTION_DISABLE_DUPLICATE_LOCATION_FIX`. */
export function fixInvalidNotificationsInFile(
inputPath: string,
outputPath: string,
Expand Down