Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

permissions:
contents: write

jobs:
update-latest-tag:
name: Update latest tag
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 0

- name: Update latest tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

# Delete the existing latest tag if it exists (both locally and remotely)
git tag -d latest 2>/dev/null || true
git push origin :refs/tags/latest 2>/dev/null || true

# Create new latest tag pointing to the current commit
git tag latest
git push origin latest

echo "✅ Updated 'latest' tag to point to ${{ github.ref_name }}"
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A GitHub Action for running [cagent](https://github.com/docker/cagent) AI agents
1. **Add the action to your workflow**:

```yaml
- uses: docker/cagent-action@v1.0.4
- uses: docker/cagent-action@latest
with:
agent: docker/code-analyzer
prompt: "Analyze this code"
Expand Down Expand Up @@ -42,7 +42,7 @@ See [security/README.md](security/README.md) for complete security documentation

```yaml
- name: Run CAgent
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: docker/github-action-security-scanner
prompt: "Analyze these commits for security vulnerabilities"
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:

- name: Analyze Changes
id: analysis
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: docker/code-analyzer
prompt: |
Expand All @@ -102,7 +102,7 @@ jobs:

```yaml
- name: Run Custom Agent
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: ./agents/my-agent.yaml
prompt: "Analyze the codebase"
Expand All @@ -114,11 +114,11 @@ jobs:

```yaml
- name: Run CAgent with Custom Settings
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: docker/code-analyzer
prompt: "Analyze this codebase"
cagent-version: v1.9.11
cagent-version: v1.19.4
mcp-gateway: true # Set to true to install mcp-gateway
mcp-gateway-version: v0.22.0
yolo: false # Require manual approval
Expand All @@ -135,7 +135,7 @@ jobs:
```yaml
- name: Run CAgent
id: agent
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: docker/code-analyzer
prompt: "Analyze this codebase"
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
| --------------------- | ------------------------------------------------------------------------------------ | -------- | ------------------------------- |
| `agent` | Agent identifier (e.g., `docker/code-analyzer`) or path to `.yaml` file | Yes | - |
| `prompt` | Prompt to pass to the agent | No | - |
| `cagent-version` | Version of cagent to use | No | `v1.15.6` |
| `cagent-version` | Version of cagent to use | No | `v1.19.4` |
| `mcp-gateway` | Install mcp-gateway (`true`/`false`) | No | `false` |
| `mcp-gateway-version` | Version of mcp-gateway to use (specifying this will enable mcp-gateway installation) | No | `v0.22.0` |
| `anthropic-api-key` | Anthropic API key | No | `$ANTHROPIC_API_KEY` env var |
Expand Down Expand Up @@ -229,15 +229,15 @@ jobs:
- uses: actions/checkout@v4

- name: Security Review
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: docker/github-action-security-scanner
prompt: "Analyze for security issues"
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

- name: Code Quality Analysis
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: docker/code-quality-analyzer
prompt: "Analyze code quality and best practices"
Expand Down Expand Up @@ -267,7 +267,7 @@ jobs:
- uses: actions/checkout@v4

- name: Run Agent
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: ${{ github.event.inputs.agent }}
prompt: ${{ github.event.inputs.prompt }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
cagent-version:
description: "Version of cagent to use"
required: false
default: "v1.15.6"
default: "v1.19.4"
mcp-gateway:
description: "Install mcp-gateway (true/false)"
required: false
Expand Down
2 changes: 1 addition & 1 deletion examples/code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Analyze Code Changes
id: analysis
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: docker/code-analyzer
prompt: |
Expand Down
2 changes: 1 addition & 1 deletion security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ All tests must pass before deployment.
```yaml
- name: Run Agent
id: agent
uses: docker/cagent-action@v1.0.4
uses: docker/cagent-action@latest
with:
agent: my-agent
prompt: "Analyze the logs"
Expand Down
2 changes: 1 addition & 1 deletion tests/test-job-summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ echo "---"
echo "| Agent | \`agents/security-scanner.yaml\` |"
echo "| Exit Code | 0 |"
echo "| Execution Time | 45s |"
echo "| CAgent Version | v1.15.6 |"
echo "| CAgent Version | v1.19.4 |"
echo "| MCP Gateway | false |"
echo ""
echo "✅ **Status:** Success"
Expand Down
Loading