diff --git a/README.md b/README.md index 17151d0..f4e6f5b 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ jobs: ## 🏳️‍🌈 参数设置 -| 参数名称 | 参数作用 | 默认值 | -| ----------- | ---------------------------- | --------- | -| scan-action | 扫描功能类型 | scan-host | -| image-ref | 镜像 Reference | | -| exit-code | 当发现安全问题时的程序退出码 | 0 | -| output | 报告输出名称 | | \ No newline at end of file +| 参数名称 | 参数作用 | 默认值 | +| ----------- | ---------------------------- |-------------| +| scan-action | 扫描功能类型 | scan-host | +| image-ref | 镜像 Reference | | +| exit-code | 当发现安全问题时的程序退出码 | 0 | +| output | 报告输出名称 | report.json | \ No newline at end of file diff --git a/action.yaml b/action.yaml index 3e83c67..3d5c811 100644 --- a/action.yaml +++ b/action.yaml @@ -23,9 +23,9 @@ inputs: runs: using: 'composite' steps: - - run: mkdir data && bash run.sh ${{ inputs.scan-action }} ${{ inputs.image-ref }} -o /data/${{ inputs.output }} -e ${{ inputs.exit-code }} + - run: bash run.sh ${{ inputs.scan-action }} ${{ inputs.image-ref }} -o ${{ inputs.output }} -e ${{ inputs.exit-code }} shell: bash - uses: actions/upload-artifact@v2 with: name: ${{ inputs.output }} - path: data/${{ inputs.output }} \ No newline at end of file + path: ${{ inputs.output }} \ No newline at end of file diff --git a/run.sh b/run.sh index 50c3a91..0986c05 100644 --- a/run.sh +++ b/run.sh @@ -2,4 +2,4 @@ # 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:/data veinmind/veinmind-runner $* \ No newline at end of file +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