-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (43 loc) · 1.04 KB
/
lint.yml
File metadata and controls
43 lines (43 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
validate:
name: Validate license and lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- validate-headers
- lint
permissions:
id-token: write
pull-requests: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.work
- name: Hub login
uses: docker/login-action@v3
with:
username: dockerpublicbot
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
driver: cloud
endpoint: "docker/secrets-engine"
install: true
- name: Lint
run: make BUILDER=${{ steps.buildx.outputs.name }} ${{ matrix.target }}