This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
refactoring #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#name: Scan Docker image | |
# | |
#on: | |
# workflow_dispatch: | |
# workflow_run: | |
# workflows: [ "Docker image", "Docker image native" ] | |
# types: | |
# - completed | |
# | |
#env: | |
# REGISTRY: ghcr.io | |
# IMAGE_NAME: ${{ github.repository }} | |
# DOCKER_CONTENT_TRUST: 1 | |
# | |
#jobs: | |
# scan-docker-image: | |
# runs-on: ubuntu-latest | |
# permissions: | |
# contents: read | |
# strategy: | |
# matrix: | |
# image_tag: [ "latest", "native" ] | |
# | |
# steps: | |
# - name: Checkout repository | |
# uses: actions/checkout@v3 | |
# | |
# - name: Scan Docker image | |
# uses: Azure/container-scan@v0 | |
# with: | |
# image-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.image_tag }} | |
# username: ${{ github.actor }} | |
# password: ${{ secrets.GITHUB_TOKEN }} |