chore: format using Make (#111)
This commit is contained in:
16
.github/workflows/cve-scan.yaml
vendored
16
.github/workflows/cve-scan.yaml
vendored
@ -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
17
.github/workflows/format.yml
vendored
Normal 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
|
Reference in New Issue
Block a user