You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* On branch edburns/ghcp-sp-122-java-release-improvements
modified: .github/aw/actions-lock.json
modified: .github/workflows/java.notes.template
modified: .github/workflows/release-changelog.lock.yml
modified: .github/workflows/release-changelog.md
Try to fix the
📦 [View on Maven Central]((central.sonatype.com/redacted)
problem.
* fix: recompile release-changelog workflow with gh-aw v0.74.4 to match CI
* fix: add preflight job to validate token permissions before publishing
* fix: use workflow dispatch probe instead of unsafe PUT for actions:write check
if [ "$HTTP_CODE" = "403" ] || [ "$HTTP_CODE" = "000" ]; then
76
+
echo "::error::JAVA_RELEASE_GITHUB_TOKEN lacks actions:write permission on ${{ github.repository }}. It cannot trigger the changelog generation workflow."
77
+
exit 1
78
+
fi
79
+
# 422 = has write access but ref doesn't exist (expected), 204 would mean it dispatched (shouldn't happen with fake ref)
80
+
echo "JAVA_RELEASE_GITHUB_TOKEN actions:write access OK (fine-grained PAT, dispatch returned HTTP ${HTTP_CODE})"
81
+
else
82
+
echo "::error::JAVA_RELEASE_GITHUB_TOKEN lacks 'workflow' scope. Found scopes: ${SCOPES}. It needs this scope to trigger changelog generation via gh workflow run."
56
83
exit 1
57
-
}
58
-
echo "JAVA_RELEASE_GITHUB_TOKEN is valid (authenticated as: ${USER})"
0 commit comments