[Steward] Fail pull requests when generated setup artifacts drift (bld-439b8b55ce5d9b03545cbdbd)#96
Conversation
Steward-Operation: bld-439b8b55ce5d9b03545cbdbd Steward-Snapshot: sha256:18c1c3aa02621f86430f325a426cfd92335117eae50e4b9837a39bd80c66be85 Co-authored-by: c1-squire-dev[bot] <c1-squire-dev[bot]@users.noreply.github.com>
| - main | ||
|
|
||
| jobs: | ||
| setup-artifacts: |
There was a problem hiding this comment.
🟡 Suggestion: This file's header declares it "managed by baton-admin. DO NOT EDIT!!!", but this PR adds the setup-artifacts job here manually. If baton-admin regenerates this workflow, the new job may be silently clobbered. Confirm this addition is applied through the baton-admin template/generator rather than as a one-off edit. (low confidence)
| env: | ||
| BATON_ACCESS_TOKEN: "${{ secrets.BATON_ACCESS_TOKEN }}" | ||
| run: ./connector capabilities --access-token=access_token --base-url=base_url --account-creation-group=group > baton_capabilities.json | ||
| run: ./dist/linux_amd64/baton-gitlab capabilities --access-token=access_token --base-url=base_url --account-creation-group=group > baton_capabilities.json |
There was a problem hiding this comment.
🟡 Suggestion: The binary path ./dist/linux_amd64/baton-gitlab is hardcoded, while the Makefile builds to dist/$(GOOS)_$(GOARCH). If this job's runs-on arch/OS ever changes, this path breaks silently. Consider deriving the path from the runner env or a make variable to keep it in sync. (low confidence)
Connector PR Review: [Steward] Fail pull requests when generated setup artifacts driftBlocking Issues: 0 | Suggestions: 2 | Threads Resolved: 0 Review SummaryReviewed the full PR diff for security and correctness. This is a CI/build-tooling change: it adds Security IssuesNone found. Correctness IssuesNone found. Suggestions
Prompt for AI agents |
Draft candidate for Steward operation bld-439b8b55ce5d9b03545cbdbd.
Validation:
go test ./...