Skip to content

Commit b6a0276

Browse files
committed
Initial commit
0 parents  commit b6a0276

46 files changed

Lines changed: 6345 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.github/workflows/*.lock.yml linguist-generated=true merge=ours
2+
workflows/*.lock.yml linguist-generated=true merge=ours
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Bug report
2+
description: Report incorrect Evergreen workflow, installer, or documentation behavior.
3+
title: "[Bug]: "
4+
labels:
5+
- bug
6+
body:
7+
- type: dropdown
8+
id: area
9+
attributes:
10+
label: Area
11+
options:
12+
- Workflow controller
13+
- Agent or safe outputs
14+
- Installation guide
15+
- Shared skills or policy
16+
- Documentation
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: current
21+
attributes:
22+
label: Current behavior
23+
description: Explain what happened. Remove tokens, secrets, and private repository data.
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: expected
28+
attributes:
29+
label: Expected behavior
30+
validations:
31+
required: true
32+
- type: textarea
33+
id: reproduction
34+
attributes:
35+
label: Reproduction
36+
description: Include the smallest safe example, controller state, and relevant check conclusions.
37+
validations:
38+
required: true
39+
- type: textarea
40+
id: version
41+
attributes:
42+
label: Toolchain
43+
description: Include the gh-aw version and the Evergreen source commit.
44+
placeholder: "gh-aw v0.79.4; Evergreen commit ..."
45+
validations:
46+
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Summary
2+
3+
Describe the behavior or documentation change and why it is needed.
4+
5+
## Validation
6+
7+
- [ ] `gh aw compile --dir workflows --validate --strict --approve --no-check-update`
8+
- [ ] `gh aw validate --dir workflows --strict --no-check-update`
9+
- [ ] `ruby tests/readiness_state_machine_test.rb`
10+
- [ ] `git diff --check`
11+
- [ ] Generated lockfiles are committed and were not edited directly
12+
- [ ] Install, policy, and design docs remain consistent with workflow behavior
13+
14+
## Security
15+
16+
- [ ] No secrets, private logs, or repository-specific credentials are included
17+
- [ ] New permissions, action references, network domains, and write paths are justified

.github/aw/actions-lock.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"entries": {
3+
"actions/checkout@v6.0.3": {
4+
"repo": "actions/checkout",
5+
"version": "v6.0.3",
6+
"sha": "df4cb1c069e1874edd31b4311f1884172cec0e10"
7+
},
8+
"actions/download-artifact@v8.0.1": {
9+
"repo": "actions/download-artifact",
10+
"version": "v8.0.1",
11+
"sha": "3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c"
12+
},
13+
"actions/github-script@v9.0.0": {
14+
"repo": "actions/github-script",
15+
"version": "v9.0.0",
16+
"sha": "3a2844b7e9c422d3c10d287c895573f7108da1b3"
17+
},
18+
"actions/setup-node@v6.4.0": {
19+
"repo": "actions/setup-node",
20+
"version": "v6.4.0",
21+
"sha": "48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e"
22+
},
23+
"actions/upload-artifact@v7.0.1": {
24+
"repo": "actions/upload-artifact",
25+
"version": "v7.0.1",
26+
"sha": "043fb46d1a93c77aae656e7c1c64a875d1fc6a0a"
27+
},
28+
"github/gh-aw-actions/setup@v0.79.4": {
29+
"repo": "github/gh-aw-actions/setup",
30+
"version": "v0.79.4",
31+
"sha": "d059700c6a8ec3b5fd798b9ea60f5d048447b918"
32+
}
33+
}
34+
}

.github/workflows/validate.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Validate
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
concurrency:
14+
group: validate-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
workflow:
19+
name: Workflow source and readiness states
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 15
22+
env:
23+
GH_TOKEN: ${{ github.token }}
24+
steps:
25+
- name: Check out repository
26+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
27+
28+
- name: Install gh-aw
29+
run: gh extension install github/gh-aw --pin v0.79.4
30+
31+
- name: Compile workflow
32+
run: gh aw compile --dir workflows --validate --strict --approve --no-check-update
33+
34+
- name: Verify generated files are current
35+
run: git diff --exit-code -- workflows/evergreen.lock.yml .github/aw/actions-lock.json
36+
37+
- name: Run workflow security validators
38+
run: gh aw validate --dir workflows --strict --no-check-update
39+
40+
- name: Test readiness state machine
41+
run: ruby tests/readiness_state_machine_test.rb

.poutine.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Configure poutine security scanner.
2+
# See: https://github.com/boostsecurityio/poutine
3+
4+
rulesConfig:
5+
pr_runs_on_self_hosted:
6+
allowed_runners:
7+
- ubuntu-slim

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to Evergreen
2+
3+
Evergreen is a source template for GitHub Agentic Workflows. Changes should keep
4+
the install contract, workflow source, generated lockfile, and shared policy
5+
documents in sync.
6+
7+
## Before Opening a Pull Request
8+
9+
1. Edit `workflows/evergreen.md`, not `workflows/evergreen.lock.yml` directly.
10+
2. Update the install guide and design docs when behavior or policy changes.
11+
3. Add or update readiness fixtures when controller state handling changes.
12+
4. Compile and validate with the pinned release toolchain:
13+
14+
```bash
15+
gh extension install github/gh-aw --pin v0.79.4
16+
gh aw compile --dir workflows --validate --strict --approve --no-check-update
17+
gh aw validate --dir workflows --strict --no-check-update
18+
ruby tests/readiness_state_machine_test.rb
19+
git diff --check
20+
```
21+
22+
5. Commit the regenerated `workflows/evergreen.lock.yml` and any action-lock
23+
updates with the source change.
24+
25+
Keep changes focused. Do not include repository credentials, CI logs containing
26+
secrets, or private installation policy in issues or pull requests.

0 commit comments

Comments
 (0)