chore: format using Make (#111)

This commit is contained in:
Kevin Goslar
2022-09-22 07:52:52 -05:00
committed by GitHub
parent c5a66aa6eb
commit 5795340e0e
38 changed files with 593 additions and 424 deletions

View File

@ -2,12 +2,12 @@ name: Docker Image Scan
on:
push:
branches:
- 'master'
- "master"
tags:
- 'v*.*.*'
- "v*.*.*"
pull_request:
branches:
- 'master'
- "master"
jobs:
docker:
@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-go@v2
name: Setup Golang
with:
go-version: '^1.16'
go-version: "^1.16"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
@ -45,8 +45,8 @@ jobs:
uses: aquasecurity/trivy-action@master
with:
image-ref: controller:latest
format: 'table'
exit-code: '42'
format: "table"
exit-code: "42"
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
vuln-type: "os,library"
severity: "CRITICAL,HIGH"

17
.github/workflows/format.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Format
on:
pull_request:
push:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- run: make format
- name: Indicate formatting issues
run: git diff HEAD --exit-code --color