java icon indicating copy to clipboard operation
java copied to clipboard

Use PAT_TOKEN to publish release

Open yue9944882 opened this issue 3 months ago • 2 comments

This PR fixes the permission issue in the repo's release workflow so that we don't need to create release manually.

Run ncipollo/release-action@v1
  with:
    token: ***
    tag: v25.0.0-legacy
    generateReleaseNotes: false
    immutableCreate: false
    makeLatest: legacy
    omitBody: false
    omitBodyDuringUpdate: false
    omitDraftDuringUpdate: false
    omitName: false
    omitNameDuringUpdate: false
    omitPrereleaseDuringUpdate: false
    removeArtifacts: false
    replacesArtifacts: true
    skipIfReleaseExists: false
    updateOnlyUnreleased: false
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.17-10/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.17-10/x64
Error: Error 403: Resource not accessible by integration - https://docs.github.com/rest/releases/releases#create-a-release

yue9944882 avatar Dec 02 '25 06:12 yue9944882

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yue9944882

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Dec 02 '25 06:12 k8s-ci-robot

Can we switch to using the gh tool as documented here:

https://github.com/ruby/ruby-dev-builder/blob/b0bf59a17c17985d4692243d4689c273f6348fa5/.github/workflows/build.yml#L177-L181

I'd rather remove reliance on 3rd party actions for software supply chain security reasons.

brendandburns avatar Dec 02 '25 19:12 brendandburns