389 relicense to mit #790
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
# SPDX-FileCopyrightText: 2022 - 2024 NRK | |
# | |
# SPDX-License-Identifier: MIT | |
name: "Build and test" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- '.github/' | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/[email protected] | |
- | |
name: Docker build | |
env: | |
DOCKER_TAG: terraform-registry:latest | |
run: | | |
make DOCKER_TAG="${DOCKER_TAG}" build-docker | |
docker image save ${DOCKER_TAG} -o image.tar | |
- | |
name: Trivy vulnerability scan | |
uses: aquasecurity/[email protected] | |
with: | |
input: image.tar | |
format: 'table' | |
exit-code: '1' | |
ignore-unfixed: true | |
vuln-type: 'os,library' | |
severity: 'CRITICAL,HIGH' |