diff --git a/.github/workflows/go-dep-submission.yml b/.github/workflows/go-dep-submission.yml index a2758ea6..3d1eeaef 100644 --- a/.github/workflows/go-dep-submission.yml +++ b/.github/workflows/go-dep-submission.yml @@ -6,6 +6,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ad2312e5..1078ba45 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,6 +13,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index e09d295d..e240f9b7 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -13,7 +13,10 @@ on: branches: - main -# Declare default permissions as read only. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: read-all jobs: diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.yml index 2ccaacbe..924a07d5 100644 --- a/.github/workflows/osv-scanner.yml +++ b/.github/workflows/osv-scanner.yml @@ -13,7 +13,10 @@ on: branches: - main -# Declare default permissions as read only. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: read-all jobs: diff --git a/.github/workflows/pr-dep-review.yml b/.github/workflows/pr-dep-review.yml index 316a5e73..93bc7e61 100644 --- a/.github/workflows/pr-dep-review.yml +++ b/.github/workflows/pr-dep-review.yml @@ -2,6 +2,10 @@ name: PR Dependency Review on: [pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 6d4014b0..2f64609c 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -15,6 +15,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + # Declare default permissions as read only. permissions: read-all diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a87fc82c..ea628530 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/trufflehog.yml b/.github/workflows/trufflehog.yml index 941cd055..2580d614 100644 --- a/.github/workflows/trufflehog.yml +++ b/.github/workflows/trufflehog.yml @@ -13,6 +13,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + # Declare default permissions as read only. permissions: read-all diff --git a/.github/workflows/update-on-push.yml b/.github/workflows/update-on-push.yml index 65ddea99..c5dbe5f6 100644 --- a/.github/workflows/update-on-push.yml +++ b/.github/workflows/update-on-push.yml @@ -13,6 +13,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + # Declare default permissions as read only. permissions: read-all @@ -31,7 +35,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: "20" + node-version: '20' token: ${{ secrets.GITHUB_TOKEN }} - name: Checkout Source