Fix GitHub Actions Authentication Error #112
release-drafter.yml
on: pull_request
update_release_draft
5s
Annotations
2 errors
update_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '7377229953',
status: 422,
response: {
url: 'https://api.github.com/repos/openim-sigs/component-base/releases/119776852',
status: 422,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
connection: 'close',
'content-length': '195',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Mon, 01 Jan 2024 12:16:20 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-oauth-scopes': 'repo',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '3646:3944:4AB9CF0:9E87710:6592AD14',
'x-oauth-scopes': 'admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, copilot, notifications, project, repo, user, workflow, write:discussion, write:packages',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4596',
'x-ratelimit-reset': '1704114811',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '404',
'x-xss-protection': '0'
},
data: {
message: 'Validation Failed',
errors: [
{
resource: 'Release',
code: 'invalid',
field: 'target_commitish'
}
],
documentation_url: 'https://docs.github.com/rest/releases/releases#update-a-release'
}
},
request: {
method: 'PATCH',
url: 'https://api.github.com/repos/openim-sigs/component-base/releases/119776852',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/16.20.2 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"body":"## Changes \\n\\n- Fix GitHub Actions Failure Due to Bad Credentials @sweep-ai (#64)\\n- Fix GitHub Actions Failure Due to Bad Credentials @sweep-ai (#53)\\n- Fix GitHub Action Credentials Issue @sweep-ai (#42)\\n- feat: Refactoring component base @cubxxw (#2)\\n- feat: init project from openim @cubxxw (#1)\\n\\n## Contributors to this component-base\\trelease\\n\\n@cubxxw, @sweep-ai and @sweep-ai[bot]\\t\\n","draft":true,"prerelease":false,"make_latest":"true","name":"v0.1.0 🌈","tag_name":"v0.1.0","target_commitish":"refs/pull/86/merge"}',
request: {}
},
event: {
id: '7377229953',
name: 'pull_request',
payload: {
action: 'opened',
number: 86,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/139494448?v=4',
description: 'OpenIM-SIG is a GitHub organization that focuses on open instant messaging (OpenIM) technologies and standards.',
events_url: 'https://api.github.com/orgs/openim-sigs/events',
hooks_url: 'https://api.github.com/orgs/openim-sigs/hooks',
id: 139494448,
issues_url: 'https://api.github.com/orgs/openim-sigs/issues',
login: 'openim-sigs',
members_url: 'https://api.github.com/orgs/openim-sigs/members{/member}',
node_id: 'O_kgDOCFCEMA',
public_members_url: 'https://api.github.com/orgs/openim-sigs/public_members{/member}',
repos_url: 'https://api.github.com/orgs/openim-sigs/repos',
url: 'https://api.github.com/orgs/openim-sigs'
},
|
update_release_draft
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
at /home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:8462:21
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '7377229953',
name: 'pull_request',
payload: {
action: 'opened',
number: 86,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/139494448?v=4',
description: 'OpenIM-SIG is a GitHub organization that focuses on open instant messaging (OpenIM) technologies and standards.',
events_url: 'https://api.github.com/orgs/openim-sigs/events',
hooks_url: 'https://api.github.com/orgs/openim-sigs/hooks',
id: 139494448,
issues_url: 'https://api.github.com/orgs/openim-sigs/issues',
login: 'openim-sigs',
members_url: 'https://api.github.com/orgs/openim-sigs/members{/member}',
node_id: 'O_kgDOCFCEMA',
public_members_url: 'https://api.github.com/orgs/openim-sigs/public_members{/member}',
repos_url: 'https://api.github.com/orgs/openim-sigs/repos',
url: 'https://api.github.com/orgs/openim-sigs'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/openim-sigs/component-base/issues/86/comments'
},
commits: {
href: 'https://api.github.com/repos/openim-sigs/component-base/pulls/86/commits'
},
html: {
href: 'https://github.com/openim-sigs/component-base/pull/86'
},
issue: {
href: 'https://api.github.com/repos/openim-sigs/component-base/issues/86'
},
review_comment: {
href: 'https://api.github.com/repos/openim-sigs/component-base/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/openim-sigs/component-base/pulls/86/comments'
},
self: {
href: 'https://api.github.com/repos/openim-sigs/component-base/pulls/86'
},
statuses: {
href: 'https://api.github.com/repos/openim-sigs/component-base/statuses/028932642c20cab9fb2de69c8b27a58d4d028115'
}
},
active_lock_reason: null,
additions: 35,
assignee: null,
assignees: [
{
avatar_url: 'https://avatars.githubusercontent.com/u/86140903?v=4',
events_url: 'https://api.github.com/users/cubxxw/events{/privacy}',
followers_url: 'https://api.github.com/users/cubxxw/followers',
following_url: 'https://api.github.com/users/cubxxw/following{/other_user}',
gists_url: 'https://api.github.com/users/cubxxw/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/cubxxw',
id: 86140903,
login: 'cubxxw',
node_id: 'MDQ6VXNlcjg2MTQwOTAz',
organizations_url: 'https://api.github.com/users/cubxxw/orgs',
received_events_url: 'https://api.github.com/users/cubxxw/received_events',
repos_url: 'https://api.github.com/users/cubxxw/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/cubxxw/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/cubxxw/subscriptions',
type: 'User',
url: 'https://api.github.com/users/cubxxw'
}
],
author_association: 'CONTRIBUTOR',
auto_merge: null,
base: {
label: 'openim-sigs:main',
ref: 'main',
repo: {
allow_auto_merge: true,
allow_forking: true,
allow_merge_commit: true,
allow_rebase_merge: true,
allow_squash_merge: true,
allow_update_branch: true,
archive_url:
|