File tree Expand file tree Collapse file tree 3 files changed +23
-20
lines changed Expand file tree Collapse file tree 3 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 4949 restore-keys : |
5050 ${{ runner.os }}-maven-
5151 - name : Build with Maven
52- run : mvn -B -U clean verify -DskipTests -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true -Psamples-java8 --file pom.xml
53-
54- scan-with-lacework :
55- name : Trigger LaceWork Scanning
56- runs-on : ubuntu-latest
57-
58- needs : [ build ]
59- if : success()
60-
61- steps :
62- - name : Trigger LaceWork Scanning using a different method
63- run : |
64- docker run -e LW_ACCOUNT_NAME=$LW_ACCOUNT_NAME -e LW_ACCESS_TOKEN=$LW_ACCESS_TOKEN -e LW_SCANNER_SAVE_RESULTS=true -e LW_SCANNER_DISABLE_UPDATES=false -v /var/run/docker.sock:/var/run/docker.sock lacework/lacework-inline-scanner:latest image evaluate swaggerapi/swagger-codegen-cli latest --docker-server index.docker.io --docker-username $docker_user --docker-password $docker_password > /dev/null 2>&1
65- env :
66- LW_ACCOUNT_NAME : ${{ secrets.LW_ACCOUNT_NAME }}
67- LW_ACCESS_TOKEN : ${{ secrets.LW_ACCESS_TOKEN }}
68- docker_user : ${{ secrets.DOCKERHUB_SB_USERNAME}}
69- docker_password : ${{ secrets.DOCKERHUB_SB_PASSWORD}}
52+ run : mvn -B -U clean verify -DskipTests -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true -Psamples-java8 --file pom.xml
Original file line number Diff line number Diff line change 8888 with :
8989 java-version : ${{ matrix.java }}
9090 - name : Cache local Maven repository
91- uses : actions/cache@v2
91+ uses : actions/cache@v3
9292 with :
9393 path : ~/.m2/repository
9494 key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Original file line number Diff line number Diff line change 7575 fi
7676 echo "GENERATORS_VERSION_PROPERTY ${GENERATORS_VERSION_PROPERTY}"
7777 echo "GENERATORS_VERSION_PROPERTY=${GENERATORS_VERSION_PROPERTY}" >> $GITHUB_ENV
78- mvn clean verify -U -DJETTY_TEST_HTTP_PORT=8070 -DJETTY_TEST_STOP_PORT=8069 ${GENERATORS_VERSION_PROPERTY}
78+ mvn clean verify -U -DJETTY_TEST_HTTP_PORT=8070 -DJETTY_TEST_STOP_PORT=8069 ${GENERATORS_VERSION_PROPERTY}
79+
80+ - name : Download Wiz CLI
81+ run : curl -o wizcli https://downloads.wiz.io/wizcli/latest/wizcli-linux-amd64 && chmod +x wizcli
82+
83+ - name : Authenticate to Wiz
84+ run : ./wizcli auth --id "$WIZ_CLIENT_ID" --secret "$WIZ_CLIENT_SECRET"
85+ env :
86+ WIZ_CLIENT_ID : ${{ secrets.WIZ_CLIENT_ID }}
87+ WIZ_CLIENT_SECRET : ${{ secrets.WIZ_CLIENT_SECRET }}
88+
89+ - name : Scan Maven build directory with Wiz
90+ run : |
91+ ./wizcli dir scan \
92+ --path . \
93+ --policy "$POLICY" \
94+ --tag repo="${{ github.repository }}" \
95+ --tag commit="${{ github.sha }}" \
96+ --tag java="${{ matrix.java }}" > /dev/null 2>&1
97+ env :
98+ POLICY : " SmartBear default vulnerabilities policy"
You can’t perform that action at this time.
0 commit comments