WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 8fe1d33

Browse files
authored
Merge pull request #75 from gitleaks/chore/update-comment-msg
edit comment message
2 parents f6b57eb + efc5778 commit 8fe1d33

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69905,7 +69905,7 @@ async function ScanPullRequest(
6990569905
repo: repo,
6990669906
pull_number: eventJSON.number,
6990769907
body: `🛑 **gitleaks** has detected a secret with rule-id \`${results.ruleId}\` in commit ${commit_sha}
69908-
If this secret is a true positive, please rotate the secret ASAP and rebase the commit containing the secret.`,
69908+
If this secret is a true positive, please rotate the secret ASAP.`,
6990969909
commit_id: commit_sha,
6991069910
path: results.locations[0].physicalLocation.artifactLocation.uri,
6991169911
side: "RIGHT",
@@ -69950,8 +69950,8 @@ If this secret is a true positive, please rotate the secret ASAP and rebase the
6995069950
try {
6995169951
await octokit.rest.pulls.createReviewComment(proposedComment);
6995269952
} catch (error) {
69953-
core.warning(`Error encountered when attempting to write a comment on PR #${eventJSON.number}.
69954-
Likely an issue with too large of a diff for the comment to be written.
69953+
core.warning(`Error encountered when attempting to write a comment on PR #${eventJSON.number}.
69954+
Likely an issue with too large of a diff for the comment to be written.
6995569955
All secrets that have been leaked will be reported in the summary and job artifact.`);
6995669956
}
6995769957
}

src/gitleaks.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ async function ScanPullRequest(
189189
repo: repo,
190190
pull_number: eventJSON.number,
191191
body: `🛑 **gitleaks** has detected a secret with rule-id \`${results.ruleId}\` in commit ${commit_sha}
192-
If this secret is a true positive, please rotate the secret ASAP and rebase the commit containing the secret.`,
192+
If this secret is a true positive, please rotate the secret ASAP.`,
193193
commit_id: commit_sha,
194194
path: results.locations[0].physicalLocation.artifactLocation.uri,
195195
side: "RIGHT",
@@ -234,8 +234,8 @@ If this secret is a true positive, please rotate the secret ASAP and rebase the
234234
try {
235235
await octokit.rest.pulls.createReviewComment(proposedComment);
236236
} catch (error) {
237-
core.warning(`Error encountered when attempting to write a comment on PR #${eventJSON.number}.
238-
Likely an issue with too large of a diff for the comment to be written.
237+
core.warning(`Error encountered when attempting to write a comment on PR #${eventJSON.number}.
238+
Likely an issue with too large of a diff for the comment to be written.
239239
All secrets that have been leaked will be reported in the summary and job artifact.`);
240240
}
241241
}

0 commit comments

Comments
 (0)