Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
cooldown:
default-days: 5
default-days: 7
schedule:
interval: weekly
16 changes: 16 additions & 0 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,22 @@ jobs:
should_tag_ghcr: ${{ inputs.should_tag_ghcr }}
should_tag_latest: ${{ inputs.should_tag_latest }}
gar_location: ${{ inputs.gar_location }}
- name: Download Wiz CLI
env:
# Wiz CLI release notes: https://docs.wiz.io/release-notes/wiz-cli
WIZ_CLI_VERSION: 1.17.0
run: curl -Lo wizcli "https://downloads.wiz.io/v1/wizcli/$WIZ_CLI_VERSION/wizcli-linux-amd64" && chmod +x wizcli

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do an integrity check on the downloaded file before running it?

- name: Run wiz-cli docker image scan
env:
IMAGE_TAGS: ${{ steps.build.outputs.image_tags }}
run: |
while IFS= read -r image_tag; do
echo "Scanning image: ${image_tag}"
./wizcli docker scan \
--image "${image_tag}" \
--client-id "${{ secrets.WIZ_CLIENT_ID }}" \
--client-secret "${{ secrets.WIZ_CLIENT_SECRET }}"
done <<< "${IMAGE_TAGS}"
- name: Run post-build commands
shell: bash
if: ${{ inputs.postbuild_script != '' }}
Expand Down
Loading