diff --git a/.github/workflows/scan-image.yml b/.github/workflows/scan-image.yml index d9b8b08..3c27623 100644 --- a/.github/workflows/scan-image.yml +++ b/.github/workflows/scan-image.yml @@ -17,11 +17,11 @@ jobs: - name: Post a comment to the PR run: | - echo ${{ github.repository }},${{ github.event.issue.pull_request.number }} + echo ${{ github.repository }},${{ github.event.issue.number }} curl -X POST \ -H "Authorization: token ${{ secrets.OWNER_TOKEN }}" \ -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \ -d '{"body": "开始镜像扫描"}' - name: Check if comment has the specified prefix and run script