Skip to content

Fix and improve example workflow #36383

Closed
@rufer7

Description

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/enterprise-cloud@latest/copilot/rolling-out-github-copilot-at-scale/reminding-inactive-users

What part(s) of the article would you like to see updated?

This week I discovered this great new article about Reminding inactive users to use their GitHub Copilot license. Thanks a lot for providing this!

While trying to get the example workflow up and running, I noticed a few things that could be improved.

  • Missing support for running the workflow manually (i.e. for testing purposes)
  • Least privilege for GITHUB_TOKEN
  • $ORGANIZATION_VAR is not defined (gh: Not Found (HTTP 404) -> $ORGANIZATION_VAR) - to be replaced with ${{ github.repository_owner }}
  • Workflow fails if a user with a GitHub copilot license has last_activity_at set to null (date: invalid date ‘null’)
  • GITHUB_TOKEN: ${{ github.token }} did not work

I'll create a pull request asap with the fixes and improvements.

Additional information

See https://blog.rufer.be/2025/02/20/howto-identify-and-remind-inactive-github-copilot-users/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamneeds SMEThis proposal needs review from a subject matter experttriageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions