Skip to content

WinGet publish action not hit because of default GitHub token #970

Closed

Description

@mdanish-kh

Description of the issue

I see a new release was created v0.24.0-beta.3 but the WinGet publish action was not invoked.

Cause

This repo creates release automatically using an action

https://github.com/microsoft/dev-proxy/blob/554bb9e88927766b75694589f0eb146659b618e6/.github/workflows/create-release.yml#L137-L148

The action uses the default secrets.GITHUB_TOKEN created automatically. As I've found in these threads below, GitHub won't let that workflow trigger another workflow if the default github token is used.

To fix this, I would suggest changing the token in create-release.yml file to be a personal access token instead of an automatically generated one

cc @garrytrinder @waldekmastykarz

Activity

  1. waldekmastykarz commented on Jan 24, 2025

    @waldekmastykarz
    Collaborator

    We noticed this too and were just about to ping you. Thanks for reaching out @mdanish-kh! We were wondering what's the cause was for the workflow not to fire and arrived at the same conclusion. Unfortunately, using PATs is discouraged at Microsoft. As such, we won't be changing our workflow and for the time being, we'll stick to our existing process of publishing to winget manually. That said, thank you so much for working with us. I learned a thing or two and will keep it in mind for the future.

  2. mdanish-kh commented on Jan 24, 2025

    @mdanish-kh
    ContributorAuthor

    @waldekmastykarz Ah, understandable. In that case, I'll close this issue. Feel free to ping me if you got anything else, thanks

  3. locked and limited conversation to collaborators on Jun 4, 2025
  4. converted this issue into a discussion #1216 on Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions