Skip to content

Commit 597b082

Browse files
committed
update pullrequest action
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 47d620d commit 597b082

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/ci-docker.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@ name: "CI: docker build"
33
on: [pull_request]
44

55
jobs:
6-
76
build:
8-
97
runs-on: ubuntu-latest
10-
118
steps:
12-
- uses: actions/checkout@v2
13-
- name: Build the Docker image
14-
run: docker build . --file Dockerfile --tag webdevops/azure-loganalytics-exporter:$(date +%s)
9+
- uses: actions/checkout@v2
10+
11+
- name: Run Gosec Security Scanner
12+
uses: securego/gosec@master
13+
with:
14+
args: ./...
15+
16+
- name: Run Golangci lint
17+
uses: golangci/golangci-lint-action@v2
18+
with:
19+
version: latest
20+
args: -E exportloopref,gofmt --timeout=30m
21+
22+
- name: Build the Docker image
23+
run: docker build . --file Dockerfile --tag ${{ github.repository }}:$(date +%s)

0 commit comments

Comments
 (0)