File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff 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
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"
You can’t perform that action at this time.
0 commit comments