Convert Microsoft Secure Score to OHDF #5406
draft-release.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: '10256052562',
status: 422,
response: {
url: 'https://api.github.com/repos/mitre/heimdall2/releases',
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': '210',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Mon, 05 Aug 2024 21:08:46 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; contents=write,workflows=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': 'B04F:92B5D:B775CE3:154B1CC0:66B13F5E',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4974',
'x-ratelimit-reset': '1722895682',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '26',
'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#create-a-release',
status: '422'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/mitre/heimdall2/releases',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.13.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"target_commitish":"refs/pull/6007/merge","name":"v2.10.13","tag_name":"v2.10.13","body":"## Dependency Updates\\n\\n- Bump @aws-sdk/client-s3 from 3.622.0 to 3.623.0 @dependabot (#6063)\\n- Bump @types/node from 22.0.2 to 22.1.0 @dependabot (#6065)\\n- Bump tsx from 4.16.3 to 4.16.5 @dependabot (#6057)\\n- Bump @aws-sdk/client-config-service from 3.621.0 to 3.623.0 @dependabot (#6062)\\n- Bump cypress from 13.13.1 to 13.13.2 @dependabot (#6049)\\n- Bump axios from 1.7.2 to 1.7.3 @dependabot (#6059)\\n- Bump @aws-sdk/client-sts from 3.622.0 to 3.623.0 @dependabot (#6064)\\n- Bump rexml from 3.2.8 to 3.3.3 in /libs/inspecjs @dependabot (#6061)\\n- Bump @aws-sdk/client-s3 from 3.621.0 to 3.622.0 @dependabot (#6055)\\n- Bump tsx from 4.16.2 to 4.16.3 @dependabot (#6051)\\n- Bump @types/node from 22.0.0 to 22.0.2 @dependabot (#6050)\\n- Bump @aws-sdk/client-s3 from 3.620.1 to 3.621.0 @dependabot (#6048)\\n","draft":true,"prerelease":false,"make_latest":"true"}',
request: {}
},
event: {
id: '10256052562',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '636d739dd4984ede5dd1a795603276b2e4ded01b',
before: 'daa958ae63c257536d60b7b82c873b52fa798d25',
number: 6007,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/44968?v=4',
description: 'Open Source Software from the MITRE Corporation',
events_url: 'https://api.github.com/orgs/mitre/events',
hooks_url: 'https://api.github.com/orgs/mitre/hooks',
id: 44968,
issues_url: 'https://api.github.com/orgs/mitre/issues',
login: 'mitre',
members_url: 'https://api.github.com/orgs/mitre/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjQ0OTY4',
|
update_release_draft
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
at /home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:8462:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '10256052562',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '636d739dd4984ede5dd1a795603276b2e4ded01b',
before: 'daa958ae63c257536d60b7b82c873b52fa798d25',
number: 6007,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/44968?v=4',
description: 'Open Source Software from the MITRE Corporation',
events_url: 'https://api.github.com/orgs/mitre/events',
hooks_url: 'https://api.github.com/orgs/mitre/hooks',
id: 44968,
issues_url: 'https://api.github.com/orgs/mitre/issues',
login: 'mitre',
members_url: 'https://api.github.com/orgs/mitre/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjQ0OTY4',
public_members_url: 'https://api.github.com/orgs/mitre/public_members{/member}',
repos_url: 'https://api.github.com/orgs/mitre/repos',
url: 'https://api.github.com/orgs/mitre'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/mitre/heimdall2/issues/6007/comments'
},
commits: {
href: 'https://api.github.com/repos/mitre/heimdall2/pulls/6007/commits'
},
html: { href: 'https://github.com/mitre/heimdall2/pull/6007' },
issue: {
href: 'https://api.github.com/repos/mitre/heimdall2/issues/6007'
},
review_comment: {
href: 'https://api.github.com/repos/mitre/heimdall2/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/mitre/heimdall2/pulls/6007/comments'
},
self: {
href: 'https://api.github.com/repos/mitre/heimdall2/pulls/6007'
},
statuses: {
href: 'https://api.github.com/repos/mitre/heimdall2/statuses/636d739dd4984ede5dd1a795603276b2e4ded01b'
}
},
active_lock_reason: null,
additions: 29090,
assignee: {
avatar_url: 'https://avatars.githubusercontent.com/u/20797074?v=4',
events_url: 'https://api.github.com/users/meme112233/events{/privacy}',
followers_url: 'https://api.github.com/users/meme112233/followers',
following_url: 'https://api.github.com/users/meme112233/following{/other_user}',
gists_url: 'https://api.github.com/users/meme112233/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/meme112233',
id: 20797074,
login: 'meme112233',
node_id: 'MDQ6VXNlcjIwNzk3MDc0',
organizations_url: 'https://api.github.com/users/meme112233/orgs',
received_events_url: 'https://api.github.com/users/meme112233/received_events',
repos_url: 'https://api.github.com/users/meme112233/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/meme112233/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/meme112233/subscriptions',
type: 'User',
url: 'https://api.github.com/users/meme112233'
},
assignees: [
{
avatar_url: 'https://avatars.githubusercontent.com/u/20797074?v=4',
events_url: 'https://api.github.com/users/meme112233/events{/privacy}',
followers_url: 'https://api.github.com/users/meme112233/followers',
following_url: 'https://api.github.com/users/meme112233/following{/other_user}',
gists_url: 'https://api.github.com/users/meme112233/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://gi
|