Skip to content

Commit a9f3223

Browse files
committed
add wiz scan to the pipeline (SWG-14342)
1 parent ddbe8aa commit a9f3223

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/maven-master-pulls.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,21 @@ jobs:
6868

6969
steps:
7070
- name: Login to Docker Hub
71-
uses: docker/login-action@v2
71+
uses: docker/login-action@v3
7272
with:
7373
username: ${{ secrets.DOCKERHUB_SB_USERNAME }}
7474
password: ${{ secrets.DOCKERHUB_SB_PASSWORD }}
7575

76+
- name: Checkout code
77+
uses: actions/checkout@v3
78+
79+
- name: Set up Docker Buildx
80+
uses: docker/setup-buildx-action@v3
81+
82+
- name: Build Docker image
83+
run: |
84+
docker buildx build --load -t swaggerapi/swagger-codegen-cli:latest .
85+
7686
- name: Download Wiz CLI
7787
run: curl -o wizcli https://downloads.wiz.io/wizcli/latest/wizcli-linux-amd64 && chmod +x wizcli
7888

@@ -82,9 +92,6 @@ jobs:
8292
WIZ_CLIENT_ID: ${{ secrets.WIZ_CLIENT_ID }}
8393
WIZ_CLIENT_SECRET: ${{ secrets.WIZ_CLIENT_SECRET }}
8494

85-
- name: Pull Docker image for scanning
86-
run: docker pull swaggerapi/swagger-codegen-cli:latest
87-
8895
- name: Run wiz-cli docker image scan
8996
run: |
9097
./wizcli docker scan --image $TAG --policy "$POLICY"

0 commit comments

Comments
 (0)