Updates setup-terraform version on tfplan README #278
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: Docker Image Scanning | |
on: | |
pull_request: | |
push: | |
paths: | |
- "action.yaml" | |
- "docker-image/*" | |
- ".github/test_files/**" | |
branches: | |
- "main" | |
tags: ["v*.*.*"] | |
env: | |
APP: mondoo-test | |
VERSION: 0.1.0 | |
jobs: | |
docker-build-scan-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and export to Docker | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./.github/test_files/ | |
load: true | |
tags: | | |
${{env.APP}}:${{env.VERSION}} | |
- name: Scan Docker Image | |
uses: ./docker-image | |
with: | |
image: ${{env.APP}}:${{env.VERSION}} | |
service-account-credentials: ${{ secrets.MONDOO_SERVICE_ACCOUNT }} |