Skip to content

Commit

Permalink
增加镜像扫描,通过评论触发
Browse files Browse the repository at this point in the history
  • Loading branch information
shishupei committed Dec 17, 2024
1 parent 5b69388 commit 2e22b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scan-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e22b51

Please sign in to comment.