Skip to content
Discussion options

You must be logged in to vote

Thank you for your patience on this topic. Based on feedback from users like yourself, we've made progress on integrating GitHub Models with GitHub Actions in a secure and straightforward way.

Current Status (April 2025)

We now support the models permission scope in GitHub Actions workflows. This allows you to access the Models API using the GitHub-generated GITHUB_TOKEN without requiring personal access tokens.

How to Use Models in GitHub Actions

You can now include the models: read permission in your workflow file:

name: AI-powered CI

on: [ push ]

permissions:
  models: read             # grants inference access
  contents: read           # typical default for code checks

jobs:
  run…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@pelikhan
Comment options

@matthewisabel
Comment options

Comment options

You must be logged in to vote
2 replies
@pelikhan
Comment options

@Akash1134
Comment options

Answer selected by pelikhan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Models
Labels
Question Ask and answer questions about GitHub features and usage Models Discussions related to GitHub Models
3 participants