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
11 changes: 9 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ on:
- main
pull_request:

# A release on main's HEAD has the same sha as the push build, so a sha key let
# one cancel the other. Publish runs key on event and ref and never cancel a
# running build. A newer push replaces only a pending one, so `main` gets the
# newest commit.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || format('{0}-{1}', github.event_name, github.ref) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read
Expand All @@ -34,6 +38,7 @@ jobs:
# no-ops outside a release.
check-version:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
Expand All @@ -43,6 +48,8 @@ jobs:
egress-policy: audit

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: The git tag must equal the chart's appVersion
env:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- ".github/workflows/chart.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}
Expand All @@ -37,6 +37,8 @@ jobs:
egress-policy: audit

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- ".github/workflows/cli.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}
Expand All @@ -37,6 +37,8 @@ jobs:
egress-policy: audit

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

# Keep equal to MIN_BUN_VERSION in cli/interface/runtime.ts (a test checks it).
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/control-plane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- ".github/workflows/control-plane.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}
Expand All @@ -25,6 +25,7 @@ defaults:
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
Expand All @@ -34,6 +35,8 @@ jobs:
egress-policy: audit

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
Expand Down Expand Up @@ -81,6 +84,8 @@ jobs:
egress-policy: audit

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/dependency-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ on:
schedule:
- cron: "17 6 * * 1"

# The event is in the key: a scheduled run and a push share main's HEAD sha.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || format('{0}-{1}', github.event_name, github.sha) }}
cancel-in-progress: true

permissions: {}
Expand All @@ -37,6 +38,8 @@ jobs:
egress-policy: audit

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

# Same gate as the image scan in docker-build-dockerhub.yml: a fixable
# Critical or High fails the job. Trivy runs from its digest-pinned
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/docker-build-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
docker-meta:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
tags: ${{ steps.meta.outputs.tags }}
arm64_tags: ${{ steps.arm64_meta.outputs.tags }}
Expand Down Expand Up @@ -124,13 +125,16 @@ jobs:
labels: ${{ needs.docker-meta.outputs.amd64_labels }}
platform: linux/amd64
runs-on: ${{ matrix.build-config.os }}
timeout-minutes: 30
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@dc2769abcc0fcfbadfc1df54081c1608579ef6b2 # v2.22.2
with:
egress-policy: audit

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Login to DockerHub
if: inputs.push
Expand Down Expand Up @@ -192,6 +196,7 @@ jobs:
create-manifest:
if: inputs.push
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [docker-build, docker-meta]
steps:
- name: Harden the runner (Audit all outbound calls)
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
lint:
name: Lint and format
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@dc2769abcc0fcfbadfc1df54081c1608579ef6b2 # v2.22.2
Expand All @@ -35,6 +36,8 @@ jobs:

- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
Expand All @@ -56,6 +59,7 @@ jobs:
test:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@dc2769abcc0fcfbadfc1df54081c1608579ef6b2 # v2.22.2
Expand All @@ -64,6 +68,8 @@ jobs:

- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Install uv
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
paths: ["deploy/**", "control-plane/**", "harness/**", "cli/**", ".github/workflows/kubernetes.yml", "package.json", "**/bun.lock"]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}
Expand All @@ -35,6 +35,8 @@ jobs:
df -h /

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
Expand Down
Loading