Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic patch release tagging broken #259

Closed
emteknetnz opened this issue May 30, 2024 · 3 comments
Closed

Automatic patch release tagging broken #259

emteknetnz opened this issue May 30, 2024 · 3 comments
Assignees

Comments

@emteknetnz
Copy link
Member

emteknetnz commented May 30, 2024

Tag rulesets were added in this issue #198

Automatic patch tagging is broken in gha-ci e.g.

Unable to create release for tag 5.2.10 - HTTP response code was 422
{
  "message": "Validation Failed",
  "errors": [
    {
      "resource": "Release",
      "code": "custom",
      "field": "pre_receive",
      "message": "pre_receive Repository rule violations found\n\nCannot create ref due to create name restrictions.\n\n"
    },
    {
      "resource": "Release",
      "code": "custom",
      "message": "Published releases must have a valid tag"
    }
  ],
  "documentation_url": "https://docs.github.com/rest/releases/releases#create-a-release"
}

Notes

New issues created

PR

@emteknetnz emteknetnz self-assigned this May 30, 2024
@emteknetnz
Copy link
Member Author

emteknetnz commented May 31, 2024

I suspect I did faulty testing originally to validate that the github-actions user has bypass permissions, I've retested and looks like it actually has no bypass permissions at all, not even write despite it have contents: write permission on the workflow

I've tested that unticking the "tag creation" check allows the gha-tag-release to create tags and releases, so in the short-term we should update module-standardiser to apply that rule

@GuySartorelli
Copy link
Member

Reassigning to Steve to run standardiser

@emteknetnz
Copy link
Member Author

Have updated, and also re-run ci workflows in issue description, things are working correclty

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

No branches or pull requests

2 participants