Skip to content

Commit

Permalink
Fetch alerts across all refs
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Logan <lindluni@github.com>
  • Loading branch information
lindluni committed Mar 29, 2024
1 parent 24a4492 commit aff9164
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions enforce/remediation/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32541,8 +32541,8 @@ const main = async () => {
refs.push(input.defaultBranch)
} else {
refs.push(...[
`pull/${input.pr}/head`,
`pull/${input.pr}/merge`
`refs/pull/${input.pr}/head`,
`refs/pull/${input.pr}/merge`
])
}
core.info(`Retrieving code scanning alerts for ${input.org}/${input.repo}/pull/${input.pr} with ref(s) ${refs.join(', ')}`)
Expand Down
4 changes: 2 additions & 2 deletions enforce/remediation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ const main = async () => {
refs.push(input.defaultBranch)
} else {
refs.push(...[
`pull/${input.pr}/head`,
`pull/${input.pr}/merge`
`refs/pull/${input.pr}/head`,
`refs/pull/${input.pr}/merge`
])
}
core.info(`Retrieving code scanning alerts for ${input.org}/${input.repo}/pull/${input.pr} with ref(s) ${refs.join(', ')}`)
Expand Down

0 comments on commit aff9164

Please sign in to comment.