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 24b4d8f commit e4608cd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/scan-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ jobs:
- name: Make script executable
run: chmod +x ./.github/script/scan_image.sh

- name: Post a comment to the PR
run: |
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.issue.number }}/comments \
-d '{"body": "开始镜像扫描"}'
- name: Check if comment has the specified prefix and run script
run: |
# 获取评论内容
Expand Down

0 comments on commit e4608cd

Please sign in to comment.