From 938e5dab98e3cbac815e55175c4ca386727908b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 23 Dec 2022 15:37:37 +0000 Subject: [PATCH] fix(ci): only scan on merges --- .github/workflows/actionlint.yml | 2 +- .github/workflows/deps.yml | 2 +- .github/workflows/duplicates.yml | 2 +- .github/workflows/go-maintenance.yml | 2 +- .github/workflows/go-mod-tidy.yml | 2 +- .github/workflows/go-version.yml | 2 +- .github/workflows/lock.yml | 2 +- .github/workflows/node-version.yml | 2 +- .github/workflows/openapi.yml | 2 +- .github/workflows/scan.yml | 7 +----- .github/workflows/stale.yml | 2 +- .github/workflows/test.yml | 36 ++++++++++++++-------------- 12 files changed, 29 insertions(+), 34 deletions(-) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index b7e2388ef..df0d556dc 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -10,7 +10,7 @@ permissions: jobs: actionlint: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout Repository" uses: actions/checkout@v3 diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml index 77928a1bd..acf715434 100644 --- a/.github/workflows/deps.yml +++ b/.github/workflows/deps.yml @@ -6,7 +6,7 @@ permissions: jobs: dependency-review: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout Repository" uses: actions/checkout@v3 diff --git a/.github/workflows/duplicates.yml b/.github/workflows/duplicates.yml index 7ba05bdad..386af1a0b 100644 --- a/.github/workflows/duplicates.yml +++ b/.github/workflows/duplicates.yml @@ -4,7 +4,7 @@ on: types: [opened, edited] jobs: run: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: wow-actions/potential-duplicates@v1.1.0 with: diff --git a/.github/workflows/go-maintenance.yml b/.github/workflows/go-maintenance.yml index 593cf79e5..85940f650 100644 --- a/.github/workflows/go-maintenance.yml +++ b/.github/workflows/go-maintenance.yml @@ -7,7 +7,7 @@ on: jobs: go-mod-upgrades: name: Upgrade all Go modules - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 diff --git a/.github/workflows/go-mod-tidy.yml b/.github/workflows/go-mod-tidy.yml index ff49ad1d1..851ab7cff 100644 --- a/.github/workflows/go-mod-tidy.yml +++ b/.github/workflows/go-mod-tidy.yml @@ -13,7 +13,7 @@ on: jobs: version-sync: name: Run go mod tidy - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 diff --git a/.github/workflows/go-version.yml b/.github/workflows/go-version.yml index d3cf87f53..3a9b62770 100644 --- a/.github/workflows/go-version.yml +++ b/.github/workflows/go-version.yml @@ -10,7 +10,7 @@ on: jobs: version-sync: name: Synchronise go-version - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 52b306901..9226f0dcb 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -6,7 +6,7 @@ on: jobs: lock: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Lock closed issues and PRs uses: dessant/lock-threads@v4 diff --git a/.github/workflows/node-version.yml b/.github/workflows/node-version.yml index 4d2b4dae4..0c7098803 100644 --- a/.github/workflows/node-version.yml +++ b/.github/workflows/node-version.yml @@ -10,7 +10,7 @@ on: jobs: version-sync: name: Synchronise node-version - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index aef035c30..69a64dbcc 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -10,7 +10,7 @@ on: jobs: code-sync: name: Regenerate OpenAPI client code - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index 2671fceda..4e7891cae 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -4,16 +4,11 @@ on: push: branches: - main - pull_request: - branches: - - main - schedule: - - cron: "0 6 * * 4" jobs: codeql: name: CodeQL - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: security-events: write actions: read diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 66bc851ef..70d0d5737 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,7 +6,7 @@ on: jobs: stale: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/stale@v7.0.0 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6286eb067..e17830eab 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ on: jobs: test-go: name: Test Go code - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -51,7 +51,7 @@ jobs: lint-go: name: Lint Go code - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -82,7 +82,7 @@ jobs: test-js: name: Test JS code - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: env: @@ -112,7 +112,7 @@ jobs: lint-js: name: Lint JS code - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -129,7 +129,7 @@ jobs: format-go: name: Check Go code formatting - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -147,7 +147,7 @@ jobs: format-js: name: Check JS code formatting - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -167,7 +167,7 @@ jobs: deps-js: name: Check JS dependencies - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -180,7 +180,7 @@ jobs: package-lock: name: Check package-lock.json - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -200,7 +200,7 @@ jobs: lint-versions: name: Lint Versions - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -210,7 +210,7 @@ jobs: typescript: name: Check for non-typescript components - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -220,7 +220,7 @@ jobs: git-commit: name: Lint git commit - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -234,7 +234,7 @@ jobs: docs: name: Lint documentation - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -260,7 +260,7 @@ jobs: - typescript - git-commit - docs - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: All linters passed run: "true" @@ -269,7 +269,7 @@ jobs: name: Benchmark Go code compare if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name needs: stage-test-and-lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: issues: write pull-requests: write @@ -323,7 +323,7 @@ jobs: name: Webpack bundle size compare if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name needs: stage-test-and-lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: issues: write pull-requests: write @@ -358,7 +358,7 @@ jobs: name: Percy UI snapshots if: github.event_name != 'release' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name needs: stage-test-and-lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -391,7 +391,7 @@ jobs: cross-compile: name: Cross compile binaries needs: stage-test-and-lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3 @@ -453,7 +453,7 @@ jobs: docker: name: Build docker image needs: stage-test-and-lint - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v3