From 6e5d806ac6201952a5ced813ebf0856c6cad062a Mon Sep 17 00:00:00 2001 From: shishupei Date: Tue, 17 Dec 2024 20:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=95=9C=E5=83=8F=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=EF=BC=8C=E9=80=9A=E8=BF=87=E8=AF=84=E8=AE=BA=E8=A7=A6?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/scan-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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