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