From 100e5d1a9ad82033155c84ddb738f821b8262004 Mon Sep 17 00:00:00 2001 From: DVKunion <2622100059@qq.com> Date: Wed, 6 Jul 2022 19:06:08 +0800 Subject: [PATCH] fix: remove run.sh && remove redundant '/data' --- action.yaml | 2 +- run.sh | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 run.sh diff --git a/action.yaml b/action.yaml index 3d5c811..d89aec6 100644 --- a/action.yaml +++ b/action.yaml @@ -23,7 +23,7 @@ inputs: runs: using: 'composite' steps: - - run: bash run.sh ${{ inputs.scan-action }} ${{ inputs.image-ref }} -o ${{ inputs.output }} -e ${{ inputs.exit-code }} + - run: docker pull veinmind/veinmind-runner:latest && docker run --rm --mount 'type=bind,source=/,target=/host,readonly,bind-propagation=rslave' -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:/tool/resource veinmind/veinmind-runner ${{ inputs.scan-action }} ${{ inputs.image-ref }} -o ${{ inputs.output }} -e ${{ inputs.exit-code }} shell: bash - uses: actions/upload-artifact@v2 with: diff --git a/run.sh b/run.sh deleted file mode 100644 index 0986c05..0000000 --- a/run.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -# Install Runner -docker pull veinmind/veinmind-runner:latest -docker run --rm --mount 'type=bind,source=/,target=/host,readonly,bind-propagation=rslave' -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`/data:/tool/resource veinmind/veinmind-runner $* \ No newline at end of file