Protect diagnostic dump against arbitrary exceptions #130
release-drafter.yml
on: pull_request
Release Drafter
6s
Annotations
2 errors
Release Drafter
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '6200533702',
status: 422,
response: {
url: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/releases/119654430',
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: 'Fri, 15 Sep 2023 16:31:10 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-github-permissions': 'contents=write',
'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': 'D88E:5BAC:12E46EF:267F661:650486CE',
'x-ratelimit-limit': '1000',
'x-ratelimit-remaining': '973',
'x-ratelimit-reset': '1694798856',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '27',
'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/torbennehmer/hacs-e3dc/releases/119654430',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/16.20.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"body":"## Changes\\n\\n## :package: Build Process\\n\\n* Bump pye3dc from 0.7.5 to 0.7.6 (#49) @dependabot\\n* Bump actions/checkout from 3.5.3 to 3.6.0 (#48) @dependabot\\n* Bump ruff from 0.0.282 to 0.0.287 (#50) @dependabot\\n","draft":true,"prerelease":false,"tag_name":"untagged-01d8aefec8146148ed94","target_commitish":"refs/pull/55/merge"}',
request: {}
},
event: {
id: '6200533702',
name: 'pull_request',
payload: {
action: 'synchronize',
after: 'f455a322014f058d55e6e6b683da86efebc408cb',
before: '5aaf7885e80b8e84eccb854354943984bfc78507',
number: 55,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/issues/55/comments'
},
commits: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/pulls/55/commits'
},
html: { href: 'https://github.com/torbennehmer/hacs-e3dc/pull/55' },
issue: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/issues/55'
},
review_comment: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/pulls/55/comments'
},
self: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/pulls/55'
},
statuses: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/statuses/f455a322014f058d55e6e6b683da86efebc408cb'
}
},
active_lock_reason: null,
additions: 94,
assignee: {
avatar_url: 'https://avatars.githubusercontent.com/u/2812067
|
Release Drafter
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
at /home/runner/work/_actions/release-drafter/release-drafter/v5.24.0/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.24.0/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '6200533702',
name: 'pull_request',
payload: {
action: 'synchronize',
after: 'f455a322014f058d55e6e6b683da86efebc408cb',
before: '5aaf7885e80b8e84eccb854354943984bfc78507',
number: 55,
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/issues/55/comments'
},
commits: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/pulls/55/commits'
},
html: { href: 'https://github.com/torbennehmer/hacs-e3dc/pull/55' },
issue: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/issues/55'
},
review_comment: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/pulls/55/comments'
},
self: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/pulls/55'
},
statuses: {
href: 'https://api.github.com/repos/torbennehmer/hacs-e3dc/statuses/f455a322014f058d55e6e6b683da86efebc408cb'
}
},
active_lock_reason: null,
additions: 94,
assignee: {
avatar_url: 'https://avatars.githubusercontent.com/u/2812067?v=4',
events_url: 'https://api.github.com/users/torbennehmer/events{/privacy}',
followers_url: 'https://api.github.com/users/torbennehmer/followers',
following_url: 'https://api.github.com/users/torbennehmer/following{/other_user}',
gists_url: 'https://api.github.com/users/torbennehmer/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/torbennehmer',
id: 2812067,
login: 'torbennehmer',
node_id: 'MDQ6VXNlcjI4MTIwNjc=',
organizations_url: 'https://api.github.com/users/torbennehmer/orgs',
received_events_url: 'https://api.github.com/users/torbennehmer/received_events',
repos_url: 'https://api.github.com/users/torbennehmer/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/torbennehmer/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/torbennehmer/subscriptions',
type: 'User',
url: 'https://api.github.com/users/torbennehmer'
},
assignees: [
{
avatar_url: 'https://avatars.githubusercontent.com/u/2812067?v=4',
events_url: 'https://api.github.com/users/torbennehmer/events{/privacy}',
followers_url: 'https://api.github.com/users/torbennehmer/followers',
following_url: 'https://api.github.com/users/torbennehmer/following{/other_user}',
gists_url: 'https://api.github.com/users/torbennehmer/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/torbennehmer',
id: 2812067,
login: 'torbennehmer',
node_id: 'MDQ6VXNlcjI4MTIwNjc=',
organizations_url: 'https://api.github.com/users/torbennehmer/orgs',
received_events_url: 'https://api.github.com/users/torbennehmer/received_events',
repos_url: 'https://api.github.com/users/torbennehmer/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/torbennehmer/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/torbennehmer/subscriptions',
type: 'User',
url: 'https://api.github.com/users
|