Working on getting Trivy report into Security Tab #12
This file contains hidden or 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: Dive Test | |
| on: push | |
| permissions: | |
| contents: read | |
| env: | |
| IMAGE_NAME: appwrite/base | |
| REGISTRY: docker.io | |
| jobs: | |
| dive: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| - name: Build an image from Dockerfile | |
| run: | | |
| docker image build --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} . | |
| - name: Dive | |
| uses: yuichielectric/[email protected] | |
| with: | |
| image: '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}' |