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 2e22b51 commit 13a996e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scan-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
IMAGE_URL="${COMMENT_BODY#$PREFIX}"
echo "Prefix matched. Running script with parameter: $IMAGE_URL"
./.github/script/scan_image.sh $GITHUB_HEAD_REF ${{ github.event.pull_request.number }} ${{ secrets.CODEARTS_PASSWORD }} ${{ secrets.CODEARTS_SCAN_IMAGE_PIPELINE }} ${{ secrets.CODEARTS_ENDPOINT_ID }} $GIT_URL ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY##*/} "$IMAGE_URL"
./.github/script/scan_image.sh $GITHUB_HEAD_REF ${{ github.event.issue.number }} ${{ secrets.CODEARTS_PASSWORD }} ${{ secrets.CODEARTS_SCAN_IMAGE_PIPELINE }} ${{ secrets.CODEARTS_ENDPOINT_ID }} $GIT_URL ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY##*/} "$IMAGE_URL"
else
echo "Comment does not match the prefix, skipping the script execution."
fi

0 comments on commit 13a996e

Please sign in to comment.