From e32c65157366e0ea6962eac6f595aa0c7daed997 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Wed, 16 Sep 2020 15:18:25 +0800 Subject: [PATCH] Fix and refine workflows (#199) * Fix linter: ansible not found error * Refine codeql: only run on *.go files --- .github/workflows/codeql-analysis.yml | 4 ++++ .github/workflows/linter.yml | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 0c80e123f..cdf335944 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -3,9 +3,13 @@ name: "CodeQL" on: push: branches: [master] + paths: + - "**/*.go" pull_request: # The branches below must be a subset of the branches above branches: [master] + paths: + - "**/*.go" schedule: - cron: '0 0 * * 1' diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 33ba1e713..f2f968fa1 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -32,6 +32,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VALIDATE_ALL_CODEBASE: false + VALIDATE_ANSIBLE: false VALIDATE_BASH: false VALIDATE_DOCKERFILE: false VALIDATE_DOCKERFILE_HADOLINT: false @@ -44,4 +45,4 @@ jobs: uses: golangci/golangci-lint-action@v2 with: version: v1.31 - args: --config=.github/linters/.golangci.yml \ No newline at end of file + args: --config=.github/linters/.golangci.yml