Skip to content

fix: improve workflow templates for security and reliability - #1

Merged
aliciapaz merged 5 commits into
mainfrom
fix/workflow-template-improvements
Apr 6, 2026
Merged

fix: improve workflow templates for security and reliability#1
aliciapaz merged 5 commits into
mainfrom
fix/workflow-template-improvements

Conversation

@aliciapaz

Copy link
Copy Markdown
Collaborator

Context

Code review of the astro integration (TelosLabs/astro#625) surfaced 7 issues that originate in the generator templates. Fixing them here ensures every project that runs rails generate baymax:install gets them right.

What Changed

baymax_triage.yml:

  • Add timeout-minutes: 10 (was defaulting to 6 hours)
  • Remove ROLLBAR_API_TOKEN — adapter-specific secrets should be added per-project
  • Fix concurrency comment to accurately describe GitHub Actions queue behavior (queues 1, not unbounded)
  • Increase fetch-depth from 1 to 50 for git blame support (triage prompt expects blame data)
  • Add failure notification step so triage failures are not silent

baymax_verify.yml:

  • Add timeout-minutes: 10
  • Pass PR number via env var instead of direct ${{ }} shell interpolation (security anti-pattern)

baymax_settings.yml:

  • Align confidence_threshold from 0.7 to 0.8 to match triage prompt guidance ("only rate above 0.8 if root cause is clearly identifiable")

How to Test

  • bundle exec rspec — 87 examples, 0 failures
  • Review template diffs for correctness

🤖 Generated with Claude Code

aliciapaz and others added 5 commits April 3, 2026 11:30
…tness

- Add timeout-minutes: 10 to triage and verify jobs
- Remove ROLLBAR_API_TOKEN from triage template (adapter-specific secrets
  should be added per-project, not in the default template)
- Fix concurrency comment to accurately describe GitHub Actions behavior
- Increase fetch-depth to 50 in triage for git blame support
- Use env var for PR number instead of direct ${{ }} shell interpolation
- Align confidence_threshold (0.8) with triage prompt guidance
- Add failure notification step to triage workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the local path dependency with a pinned GitHub ref so GitHub Actions can resolve dependencies without requiring a sibling checkout. This fixes CI failures where bundler could not find ../telos-agent-toolkit.
The lint workflow loads RuboCop config from rubocop-harness that references rubocop-rspec. Add rubocop-rspec to development/test dependencies so Inspecting 16 files
................

16 files inspected, no offenses detected

The following RuboCop extension libraries are installed but not loaded in config:
  * rubocop-rspec

You can opt out of this message by adding the following to your config (see https://docs.rubocop.org/rubocop/extensions.html#extension-suggestions for more options):
  AllCops:
    SuggestExtensions: false can load all configured cops in CI.
Prevent CI lint jobs from traversing dependency install directories by excluding vendor and .bundle paths explicitly in RuboCop config.
Move CI to actions/checkout@v5 to avoid upcoming Node 20 deprecation warnings on GitHub-hosted runners.
@aliciapaz
aliciapaz merged commit 450d024 into main Apr 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant