Skip to content

zencoderai/zen-agents-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zen Agents Action

GitHub Action for Zencoder Agents

GitHub Release License

Authentication

To get Zencoder client id and secret go to the https://auth.zencoder.ai/profile and click on Settings -> Personal Tokens.

Workflow examples

Pull request reviews

name: Run Zencoder Agent on PR review

on:
  pull_request:
    branches:
      - main
jobs:
  agent-run:
    runs-on: ubuntu-24.04
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Running Zencoder Agent
        uses: zencoderai/zen-agents-action@main
        with:
          prompt: "Please review the pull request with number ${{ github.event.pull_request.number }} and add comment to it. Please address only the serious issues, not the minor ones. If you didn't find any serious issues, please write 'Looks good to me!'."
          zencoder_client_id: "${{ secrets.ZENCODER_CLIENT_ID }}"
          zencoder_client_secret: "${{ secrets.ZENCODER_CLIENT_SECRET }}"
          github_token: "${{ secrets.GITHUB_TOKEN }}"

Workflow to be triggered from API call or manually

name: Run Zencoder Agent

on:
  workflow_dispatch:
    inputs:
      prompt:
        type: string
        description: "The input prompt for the Agent"
        required: true
      agent:
        type: string
        description: "Alias of the agent to run (will run default agent if not provided)"
        required: false
        default: ""
jobs:
  agent-run:
    runs-on: ubuntu-24.04
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Running Zencoder Agent
        uses: zencoderai/zen-agents-action@main
        with:
          prompt: "${{ inputs.prompt }}"
          agent: "${{ inputs.agent }}"
          zencoder_client_id: "${{ secrets.ZENCODER_CLIENT_ID }}"
          zencoder_client_secret: "${{ secrets.ZENCODER_CLIENT_SECRET }}"
          github_token: "${{ secrets.GITHUB_TOKEN }}"

Inputs

Name Type Required Default Description
zencoder_client_id String true Zencoder client id for authentication
zencoder_client_secret String true Zencoder client secret for authentication
github_token String true GitHub token used by the action to access GitHub APIs
prompt String true The input prompt for the Agent
version String false "latest" Version of the zencoder to use
agent String false "" Alias of the agent to run (will run default agent if not provided)
base_path String false "." Base path to run agent from (should be repository root)

About

Zencoder agent GitHub Action

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •