Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed May 14, 2024
1 parent 589d4df commit 2e7bca7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
const issue_number = context.issue.number;
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
const { data: comments } = await octokit.rest.issues.listComments({
const { data: comments } = await github.rest.issues.listComments({
...context.repo,
issue_number: issue_number,
});
Expand All @@ -157,13 +157,13 @@ jobs:
// Update or create comment
if (existingComment) {
await octokit.rest.issues.updateComment({
await github.rest.issues.updateComment({
...context.repo,
comment_id: existingComment.id,
body: combinedMessage
});
} else {
await octokit.rest.issues.createComment({
await github.rest.issues.createComment({
...context.repo,
issue_number: issue_number,
body: combinedMessage
Expand Down

0 comments on commit 2e7bca7

Please sign in to comment.