@@ -18,7 +18,7 @@ concurrency:
1818# Environment variables shared across all jobs.
1919env :
2020 GOPROXY : direct
21- GO_COMMON_TEST_ARGS : " -v github.com/jfrog/jfrog-cli-security --race --timeout 30m --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }}"
21+ GO_COMMON_TEST_ARGS : " -v github.com/jfrog/jfrog-cli-security --race --timeout 30m --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --test.containerRegistry=${{ secrets.CONTAINER_REGISTRY }} "
2222 GRADLE_OPTS : -Dorg.gradle.daemon=false
2323 CI : true
2424 JFROG_CLI_LOG_LEVEL : DEBUG
@@ -180,6 +180,10 @@ jobs:
180180 # Test
181181 - name : Run tests
182182 run : go test ${{ env.GO_COMMON_TEST_ARGS }} --test.xsc
183+ if : ${{ matrix.os != 'ubuntu' }}
184+ - name : Run security tests (with Docker Scan)
185+ run : go test ${{ env.GO_COMMON_TEST_ARGS }} --test.xsc --test.dockerScan --ci.runId=${{ runner.os }}-sec-test
186+ if : ${{ matrix.os == 'ubuntu' }}
183187
184188 Other_Scan_Commands_Integration_Tests :
185189 name : " [${{ matrix.os }}] Other Scan Commands Integration Tests"
@@ -204,7 +208,7 @@ jobs:
204208 run : go test ${{ env.GO_COMMON_TEST_ARGS }} --test.scan
205209 if : ${{ matrix.os != 'ubuntu' }}
206210 - name : Run security tests (with Docker Scan)
207- run : go test ${{ env.GO_COMMON_TEST_ARGS }} --test.scan --test.dockerScan --test.containerRegistry=${{ secrets.CONTAINER_REGISTRY }} -- ci.runId=${{ runner.os }}-sec-test
211+ run : go test ${{ env.GO_COMMON_TEST_ARGS }} --test.scan --test.dockerScan --ci.runId=${{ runner.os }}-sec-test
208212 if : ${{ matrix.os == 'ubuntu' }}
209213
210214 Other_Commands_Integration_Tests :
0 commit comments