From dece74224b8183a42de1d53cfe84059865817ad0 Mon Sep 17 00:00:00 2001 From: Markus Blaschke Date: Mon, 14 Feb 2022 23:15:29 +0100 Subject: [PATCH] update pullrequest action Signed-off-by: Markus Blaschke --- .github/workflows/ci-docker.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.yml index 5f0d4ad..406131b 100644 --- a/.github/workflows/ci-docker.yml +++ b/.github/workflows/ci-docker.yml @@ -3,12 +3,21 @@ name: "CI: docker build" on: [pull_request] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag webdevops/azure-metrics-exporter:$(date +%s) + - uses: actions/checkout@v2 + + - name: Run Gosec Security Scanner + uses: securego/gosec@master + with: + args: ./... + + - name: Run Golangci lint + uses: golangci/golangci-lint-action@v2 + with: + version: latest + args: -E exportloopref,gofmt --timeout=30m + + - name: Build the Docker image + run: docker build . --file Dockerfile --tag ${{ github.repository }}:$(date +%s)