Files
carbon-lang/.github/workflows
Chandler Carruth f789ad4bdd Fix benchmarks.yaml workflow failure due to syntax errors (#8156)
We were setting up `BMF_FILE` environment variable in the job rather
than the step, and we don't have a `runner` variable available at that
point. Sink it into the step where it can resolve successfully.

Assisted-by: Antigravity with Gemini
2026-11-18 17:07:56 +00:00
..

Workflows

Hardening

Workflows are hardened using Step Security tool. Findings for the "Harden Runner" steps are available online.

Allowed endpoints

Most jobs only have a few endpoints, but due to tools which do downloads, a few have significantly more. These are:

  • benchmarks.yaml (Bazel, Bencher)
  • clangd_tidy.yaml (Bazel)
  • prek.yaml (Bazel, prek)
  • nightly_release.yaml (Bazel)
  • tests.yaml (Bazel)

When updating one of these, consider updating all of them.

We try to keep allowed-endpoints with one per line. Prettier wants to wrap them, which we fix this with prettier-ignore.

Testing

We keep around an action-test branch in carbon-lang, which can be used to test triggers with push: configurations. For example:

on:
  push:
    branches: [action-test]