Skip to content

Token via Osscar the OSS cat (our very own GitHub app).#38

Merged
samcunliffe merged 5 commits intomainfrom
sc/35-token-via-github-app
Oct 15, 2025
Merged

Token via Osscar the OSS cat (our very own GitHub app).#38
samcunliffe merged 5 commits intomainfrom
sc/35-token-via-github-app

Conversation

@samcunliffe
Copy link
Member

@samcunliffe samcunliffe commented Oct 15, 2025

Better rate limit than a personal token. (🎉)

Potentially more secure, as the GRAPHQL_TOKEN expires after one hour (we do have to upload the private key of the app as a repo secret though, so ¯\_(ツ)_/¯ )

Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
@samcunliffe samcunliffe requested a review from a team as a code owner October 15, 2025 14:09
@samcunliffe samcunliffe linked an issue Oct 15, 2025 that may be closed by this pull request
@samcunliffe samcunliffe marked this pull request as draft October 15, 2025 14:12
@samcunliffe samcunliffe changed the title Token via Osscar the OSS cat (bot). Token via Osscar the OSS cat (our very own GitHub app). Oct 15, 2025
Comment on lines -40 to -45
- name: Restore conda downloads cache
uses: actions/cache@v4
with:
path: |
~/.dashboard
key: conda-download-cache-${{ env.DATE }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the benefit of future readers, we discussed this offline: this chunk was missed in #27, it's technically orthogonal to this PR.

@samcunliffe
Copy link
Member Author

Yäy! 🥳

@samcunliffe samcunliffe requested a review from giordano October 15, 2025 16:09
@samcunliffe samcunliffe marked this pull request as ready for review October 15, 2025 16:09
@samcunliffe samcunliffe requested review from a team and Copilot October 15, 2025 16:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR replaces personal access token authentication with a GitHub App token for improved rate limits and security. The GitHub App token expires after one hour, providing better security than long-lived personal tokens.

  • Removes global environment variables and integrates GitHub App token generation
  • Adds token generation step using the actions/create-github-app-token action
  • Moves environment variables to the specific step that needs them

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@samcunliffe samcunliffe added enhancement New feature or request github actions Pull requests that update GitHub Actions code labels Oct 15, 2025
Copy link
Member

@giordano giordano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@samcunliffe samcunliffe merged commit 0a4d001 into main Oct 15, 2025
1 check failed
@samcunliffe samcunliffe deleted the sc/35-token-via-github-app branch October 15, 2025 16:44
samcunliffe added a commit that referenced this pull request Oct 31, 2025
* Workflow update.

Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>

* Remove GRAPHQL_TOKEN from the `env` 🤦

* (Temporarily) delete concurency group

* Revert temporary disabling of the concurrency rules. Also add a timeout.

---------

Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request github actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Token via GitHub App

3 participants