diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 89883f1e..aed99168 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,9 +14,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: '31 7 * * 3' diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 4a1c0b9a..8a1c484c 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -4,7 +4,11 @@ on: push: branches: - "master" + paths: + - '**.go' pull_request: + paths: + - '**.go' jobs: test: