3939
4040 - name : ' Comment on PR'
4141 if : steps.download-artifact.outputs.artifact-id != ''
42- uses : actions/github-script@ffc2c79a5b2490bd33e0a41c1de74b877714d736 # v3.2.0
42+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
4343 with :
4444 github-token : ${{ secrets.GITHUB_TOKEN }}
4545 script : |
4949 return;
5050 }
5151
52- let runInfo = await github.actions.getWorkflowRun({
52+ let runInfo = await github.rest. actions.getWorkflowRun({
5353 owner: context.repo.owner,
5454 repo: context.repo.repo,
5555 run_id: context.payload.workflow_run.id
@@ -122,7 +122,7 @@ jobs:
122122 // Security check: Ensure that this comment was created by
123123 // the github-actions bot, so a malicious input won't overwrite
124124 // a user's comment.
125- github.issues.getComment({
125+ github.rest. issues.getComment({
126126 owner: context.repo.owner,
127127 repo: context.repo.repo,
128128 comment_id: comment.id
@@ -132,7 +132,7 @@ jobs:
132132 console.log("Invalid comment id: " + comment.id);
133133 return;
134134 }
135- github.issues.updateComment({
135+ github.rest. issues.updateComment({
136136 owner: context.repo.owner,
137137 repo: context.repo.repo,
138138 issue_number: pr_number,
@@ -141,7 +141,7 @@ jobs:
141141 });
142142 });
143143 } else {
144- github.issues.createComment({
144+ github.rest. issues.createComment({
145145 owner: context.repo.owner,
146146 repo: context.repo.repo,
147147 issue_number: pr_number,
0 commit comments