Skip to content

GitHub Models in GitHub Actions

A clean 8-bit illustration uses five corporate colors to show a pixelated digital key bridging a GitHub logo and an AI robot icon. A blocky arrow links these icons, symbolizing smooth integration and automated workflow. There is no text or depiction of people.
Generated by 🤖 AI

You can now use GITHUB_TOKEN from GitHub Actions to authenticate requests to GitHub Models!!!

genai.yml
permissions:
models: read
jobs:
genai:
steps:
run: npx -y genaiscript run ...
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This simplifies your workflows by integrating AI capabilities directly into your actions, eliminating the need to generate and manage Personal Access Tokens (PATs)!