blob: 0a4bafbd49b18ba6be9156778aa17f8ae8fcf150 [file] [view]
---
paths: ".github/**,.asf.yaml"
applyTo: ".github/**,.asf.yaml"
---
<!-- GENERATED from .agents/rules/github.md by .agents/sync-adapters.sh. Edit the source, then run it. -->
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
# CI workflows and Dependabot
GitHub Actions runners are shared by every ASF project. Agents adding or
editing anything under `.github/` must follow Infra's
[GitHub Actions policy](https://infra.apache.org/github-actions-policy.html)
(mandatory) and its
[guidance on reducing queue load](https://infra.apache.org/services.html#github-actions).
In this repository that means:
- Platform workflows that run on pull requests carry the concurrency group
already used in `java-platform.yml`, so a new push to a PR cancels its
earlier runs. Pushes to `develop` are never cancelled:
```yaml
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
```
- Short jobs that need no Docker run on `ubuntu-slim` (1 vCPU, 15 minute
limit), not `ubuntu-latest`.
- Each Dependabot ecosystem in `.github/dependabot.yml` groups both version
updates and `applies-to: security-updates`, so each ecosystem opens one PR
instead of one per dependency.
- Actions outside `apache/*`, `github/*` and `actions/*` are pinned to a full
commit SHA and must be on Infra's approved list
([apache/infrastructure-actions](https://github.com/apache/infrastructure-actions)).
- No `pull_request_target`, and no matrix above 20 concurrent jobs per
workflow (15 or fewer recommended).
## Also
- The Java, Go, C and Python workflows (`<lang>-platform.yml`) build with
`-P with-<lang>,enable-all-checks,update-generated-code`; `dotnet-platform.yml` runs `dotnet` directly plus the
generated-model check. Each runs only for its `paths:`: a change that adds a directory a language build
depends on extends those filters.
- `.asf.yaml` drives Infra's repository settings (merge buttons, branch protection, notifications); change it
only when the task is about that, and say so in the PR.
- `agent-instructions.yml` runs `.agents/sync-adapters.sh --check` when `AGENTS.md`, `.agents/` or a generated
copy changes.
- `.github/pull_request_template.md` is what every PR body follows; `CHANGELOG.md` is written by
`changelog.yml`, never by hand.