Skip to content

Commit 93fa25b

Browse files
committed
add nosec
1 parent e0d67eb commit 93fa25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/pullrequests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func UpdatePullRequest(getClient GetClientFn, getGQLClient GetGQLClientFn, t tra
350350
err = gqlClient.Query(ctx, &prQuery, map[string]interface{}{
351351
"owner": githubv4.String(owner),
352352
"repo": githubv4.String(repo),
353-
"prNum": githubv4.Int(int32(pullNumber)),
353+
"prNum": githubv4.Int(pullNumber), // #nosec G115 - pull request numbers are always small positive integers
354354
})
355355
if err != nil {
356356
return ghErrors.NewGitHubGraphQLErrorResponse(ctx, "Failed to find pull request", err), nil

0 commit comments

Comments
 (0)