Skip to content

Commit fc7dc2c

Browse files
committed
Compile with github/gh-aw#16372
1 parent af6a4de commit fc7dc2c

47 files changed

Lines changed: 4079 additions & 2800 deletions

Some content is hidden

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

.github/workflows/agentics-maintenance.yml

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ jobs:
4848
issues: write
4949
pull-requests: write
5050
steps:
51+
- name: Checkout actions folder
52+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
53+
with:
54+
sparse-checkout: |
55+
actions
56+
persist-credentials: false
57+
5158
- name: Setup Scripts
5259
uses: ./actions/setup
5360
with:
@@ -79,3 +86,118 @@ jobs:
7986
setupGlobals(core, github, context, exec, io);
8087
const { main } = require('/opt/gh-aw/actions/close_expired_pull_requests.cjs');
8188
await main();
89+
90+
compile-workflows:
91+
runs-on: ubuntu-slim
92+
permissions:
93+
contents: read
94+
issues: write
95+
steps:
96+
- name: Checkout repository
97+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
98+
with:
99+
persist-credentials: false
100+
101+
102+
- name: Setup Go
103+
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
104+
with:
105+
go-version-file: go.mod
106+
cache: true
107+
108+
- name: Build gh-aw
109+
run: make build
110+
111+
- name: Compile workflows
112+
run: |
113+
./gh-aw compile --validate --verbose
114+
echo "✓ All workflows compiled successfully"
115+
116+
- name: Setup Scripts
117+
uses: ./actions/setup
118+
with:
119+
destination: /opt/gh-aw/actions
120+
121+
- name: Check for out-of-sync workflows and create issue if needed
122+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
123+
with:
124+
script: |
125+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
126+
setupGlobals(core, github, context, exec, io);
127+
const { main } = require('/opt/gh-aw/actions/check_workflow_recompile_needed.cjs');
128+
await main();
129+
130+
zizmor-scan:
131+
runs-on: ubuntu-slim
132+
needs: compile-workflows
133+
permissions:
134+
contents: read
135+
steps:
136+
- name: Checkout repository
137+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
138+
139+
- name: Setup Go
140+
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
141+
with:
142+
go-version-file: go.mod
143+
cache: true
144+
145+
- name: Build gh-aw
146+
run: make build
147+
148+
- name: Run zizmor security scanner
149+
run: |
150+
./gh-aw compile --zizmor --verbose
151+
echo "✓ Zizmor security scan completed"
152+
153+
secret-validation:
154+
runs-on: ubuntu-slim
155+
permissions:
156+
contents: read
157+
steps:
158+
- name: Checkout actions folder
159+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
160+
with:
161+
sparse-checkout: |
162+
actions
163+
persist-credentials: false
164+
165+
- name: Setup Node.js
166+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
167+
with:
168+
node-version: '22'
169+
170+
- name: Setup Scripts
171+
uses: ./actions/setup
172+
with:
173+
destination: /opt/gh-aw/actions
174+
175+
- name: Validate Secrets
176+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
177+
env:
178+
# GitHub tokens
179+
GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }}
180+
GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}
181+
GH_AW_PROJECT_GITHUB_TOKEN: ${{ secrets.GH_AW_PROJECT_GITHUB_TOKEN }}
182+
GH_AW_COPILOT_TOKEN: ${{ secrets.GH_AW_COPILOT_TOKEN }}
183+
# AI Engine API keys
184+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
185+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
186+
BRAVE_API_KEY: ${{ secrets.BRAVE_API_KEY }}
187+
# Integration tokens
188+
NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }}
189+
with:
190+
script: |
191+
const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs');
192+
setupGlobals(core, github, context, exec, io);
193+
const { main } = require('/opt/gh-aw/actions/validate_secrets.cjs');
194+
await main();
195+
196+
- name: Upload secret validation report
197+
if: always()
198+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
199+
with:
200+
name: secret-validation-report
201+
path: secret-validation-report.md
202+
retention-days: 30
203+
if-no-files-found: warn

0 commit comments

Comments
 (0)