Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci-gitleaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
timeout-minutes: 15
permissions:
contents: read
# Pushing again to a pull request supersedes the run in flight, so it is cancelled rather
# than billed to the end. Only pull requests cancel: a push to the default branch, a
# merge group and a schedule always finish. `github.workflow` is the caller's name, and
# the library suffix keeps this group distinct from any the caller declares itself.
concurrency:
group: ci-gitleaks-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
GITLEAKS_VERSION: ${{ inputs.gitleaks-version }}
CONFIG_FILE: ${{ inputs.config-file }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ jobs:
timeout-minutes: ${{ inputs.timeout-minutes }}
permissions:
contents: read
# Pushing again to a pull request supersedes the run in flight, so it is cancelled rather
# than billed to the end. Only pull requests cancel: a push to the default branch, a
# merge group and a schedule always finish. `github.workflow` is the caller's name, and
# the library suffix keeps this group distinct from any the caller declares itself.
concurrency:
group: ci-go-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
defaults:
run:
working-directory: ${{ inputs.working-directory }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci-java-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ jobs:
timeout-minutes: ${{ inputs.timeout-minutes }}
permissions:
contents: read
# Pushing again to a pull request supersedes the run in flight, so it is cancelled rather
# than billed to the end. Only pull requests cancel: a push to the default branch, a
# merge group and a schedule always finish. `github.workflow` is the caller's name, and
# the library suffix keeps this group distinct from any the caller declares itself.
concurrency:
group: ci-java-gradle-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ jobs:
timeout-minutes: ${{ inputs.timeout-minutes }}
permissions:
contents: read
# Pushing again to a pull request supersedes the run in flight, so it is cancelled rather
# than billed to the end. Only pull requests cancel: a push to the default branch, a
# merge group and a schedule always finish. `github.workflow` is the caller's name, and
# the library suffix keeps this group distinct from any the caller declares itself.
concurrency:
group: ci-lint-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,25 @@ permissions: {}
jobs:
pr-checks:
name: Title, branch, size, commits
# Skipped here rather than in the caller so the check still reports, as skipped, under
# the name a ruleset requires. Dependabot's pull requests are never linted, so they do
# not need a runner at all. `edited` also fires when only the body or base changes --
# release-please and Dependabot rewrite theirs on every push -- and nothing checked
# reads the body, so it re-runs only when the title or the base branch changed.
if: >-
${{ github.actor != 'dependabot[bot]'
&& (github.event.action != 'edited'
|| github.event.changes.title || github.event.changes.base) }}
runs-on: ubuntu-latest
permissions:
contents: read
# Pushing again to a pull request supersedes the run in flight, so it is cancelled rather
# than billed to the end. Only pull requests cancel: a push to the default branch, a
# merge group and a schedule always finish. `github.workflow` is the caller's name, and
# the library suffix keeps this group distinct from any the caller declares itself.
concurrency:
group: ci-pr-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
steps:
- name: Check out the pull request
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ci-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ jobs:
timeout-minutes: ${{ inputs.timeout-minutes }}
permissions:
contents: read
# Pushing again to a pull request supersedes the run in flight, so it is cancelled rather
# than billed to the end. Only pull requests cancel: a push to the default branch, a
# merge group and a schedule always finish. `github.workflow` is the caller's name, and
# the library suffix keeps this group distinct from any the caller declares itself.
concurrency:
group: ci-pre-commit-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
UV_VERSION: ${{ inputs.uv-version }}
UV_PROJECT: ${{ inputs.uv-project }}
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/ci-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ jobs:
timeout-minutes: 15
permissions:
contents: read
# Pushing again to a pull request supersedes the run in flight, so it is cancelled rather
# than billed to the end. Only pull requests cancel: a push to the default branch, a
# merge group and a schedule always finish. `github.workflow` is the caller's name, and
# the library suffix keeps this group distinct from any the caller declares itself.
concurrency:
group: ci-workflows-actionlint-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
ACTIONLINT_VERSION: ${{ inputs.actionlint-version }}
steps:
Expand Down Expand Up @@ -73,6 +80,10 @@ jobs:
timeout-minutes: 15
permissions:
contents: read
# See the actionlint job: a superseded pull request run is cancelled, nothing else is.
concurrency:
group: ci-workflows-zizmor-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
ZIZMOR_VERSION: ${{ inputs.zizmor-version }}
ZIZMOR_PERSONA: ${{ inputs.zizmor-persona }}
Expand Down
Loading