diff --git a/.github/workflows/scan-image.yml b/.github/workflows/scan-image.yml index 051fd55..f44813a 100644 --- a/.github/workflows/scan-image.yml +++ b/.github/workflows/scan-image.yml @@ -25,9 +25,9 @@ jobs: if [[ "$COMMENT_BODY" == "$PREFIX"* ]]; then # 去掉前缀并提取后面的内容 IMAGE_URL="${COMMENT_BODY#$PREFIX}" - echo ${{ github.event.issue.head.ref }} ${{ github.event.issue.number }} ${{ secrets.CODEARTS_PASSWORD }} ${{ secrets.CODEARTS_SCAN_IMAGE_PIPELINE }} ${{ secrets.CODEARTS_ENDPOINT_ID }} ${{ github.event.repository.html_url }} ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY##*/} "$IMAGE_URL" + echo main ${{ github.event.issue.number }} ${{ secrets.CODEARTS_PASSWORD }} ${{ secrets.CODEARTS_SCAN_IMAGE_PIPELINE }} ${{ secrets.CODEARTS_ENDPOINT_ID }} https://github.com/${GITHUB_REPOSITORY}.git ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY##*/} "$IMAGE_URL" - ./.github/script/scan_image.sh ${{ github.event.issue.head.ref }} ${{ github.event.issue.number }} ${{ secrets.CODEARTS_PASSWORD }} ${{ secrets.CODEARTS_SCAN_IMAGE_PIPELINE }} ${{ secrets.CODEARTS_ENDPOINT_ID }} ${{ github.event.repository.html_url }} ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY##*/} "$IMAGE_URL" + ./.github/script/scan_image.sh main ${{ github.event.issue.number }} ${{ secrets.CODEARTS_PASSWORD }} ${{ secrets.CODEARTS_SCAN_IMAGE_PIPELINE }} ${{ secrets.CODEARTS_ENDPOINT_ID }} https://github.com/${GITHUB_REPOSITORY}.git ${GITHUB_REPOSITORY%/*} ${GITHUB_REPOSITORY##*/} "$IMAGE_URL" else echo "Comment does not match the prefix, skipping the script execution." fi