-
Notifications
You must be signed in to change notification settings - Fork 0
Workflow to build tutorial agents on commits #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
686e19a to
a3bb2ff
Compare
a3bb2ff to
5772cc5
Compare
5772cc5 to
4cdea1a
Compare
| run: | | ||
| # Remove examples/tutorials/ prefix and replace / with - | ||
| AGENT_NAME=$(echo "${{ inputs.agent_path }}" | sed 's|^examples/tutorials/||' | sed 's|/|-|g') | ||
| echo "AGENT_NAME=$AGENT_NAME" >> $GITHUB_ENV | ||
| echo "agent_name=$AGENT_NAME" >> $GITHUB_OUTPUT | ||
| echo "Agent name set to $AGENT_NAME" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semgrep identified an issue in your code:
Using variable interpolation ${{...}} with github context data in a run: step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. github context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with env: to store the data and use the environment variable in the run: script. Be sure to use double-quotes the environment variable, like this: "$ENVVAR".
To resolve this comment:
🔧 No guidance has been designated for this issue. Fix according to your organization's approved methods.
💬 Ignore this finding
Reply with Semgrep commands to ignore this finding.
/fp <comment>for false positive/ar <comment>for acceptable risk/other <comment>for all other reasons
Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by run-shell-injection.
You can view more details about this finding in the Semgrep AppSec Platform.
5c57f80 to
50bdc71
Compare
50bdc71 to
b0eb068
Compare
66d14e6 to
152c53f
Compare
🔧 Add Automated Tutorial Agent Build Pipeline
Summary
Introduces a CI/CD pipeline that automatically builds and deploys tutorial agent Docker images with intelligent change detection and maintainer-only manual overrides. These images are used by the
scale-agentexrepo as part of integration testing.Key Features
🎯 Smart Change Detection
🔐 Access Control
🚀 Multi-Trigger Support
Workflow Behavior
Usage
Manual rebuild all agents (maintainers only)
gh workflow run build-and-push-tutorial-agent.yml --field rebuild_all=trueBenefits
Images published to ghcr.io/{owner}/{repo}/tutorial-agents/{agent-name}:latest