feat: Export and json-tag fields of manifest.OciImageManifestResponse{} #128
release-drafter.yml
on: pull_request
update_release_draft
7s
Annotations
3 errors
update_release_draft
Resource not accessible by integration
{
name: 'HttpError',
id: '9095953454',
status: 403,
response: {
url: 'https://api.github.com/repos/kubewarden/policy-sdk-go/issues/82/labels',
status: 403,
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-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 15 May 2024 12:49:14 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'issues=write; pull_requests=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': 'D8CD:3F89FC:1274A15:22D4DA1:6644AF49',
'x-ratelimit-limit': '15000',
'x-ratelimit-remaining': '14979',
'x-ratelimit-reset': '1715780931',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '21',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/issues/labels#add-labels-to-an-issue'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/kubewarden/policy-sdk-go/issues/82/labels',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.8.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"labels":["kind/feature"]}',
request: {}
},
event: {
id: '9095953454',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: '\r\n' +
'\r\n' +
'## Description\r\n' +
'\r\n' +
'Relates to https://github.com/kubewarden/cel-policy/issues/31\r\n' +
'\r\n' +
'Setting the json tags is needed as we marshal this struct in the cel-policy, `kw.oci.getManifest()` function to return it as map.\r\n' +
'\r\n' +
'To honour this new contract with the json tags, mark fields as exported.\r\n' +
'This also simplifies creating mocks with this type struct without type casting.\r\n' +
'\r\n' +
'\r\n' +
'Note that API is still backwards compatible as we were using the fields via the getters, which are untouched. Plus, cel-policy seems to be the first consumer of this. \r\n' +
'\r\n' +
'<!-- Please provide the link to the documentation related to your change, if applicable -->\r\n' +
'<!-- [Documentation](https://<insert your url>) -->\r\n' +
'\r\n' +
'## Test\r\n' +
'\r\n' +
'<!-- Please provides a short description about how to test your pullrequest -->\r\n' +
'To test this pull request, you can run the following commands:\r\n' +
'\r\n' +
'<!--\r\n' +
'```shell\r\n' +
'cp <to_package_directory>\r\n' +
'go test\r\n' +
'```\r\n' +
'-->\r\n' +
'\r\n' +
'## Additional Information\r\n' +
'\r\n' +
'\r\n' +
'### Tradeoff\r\n' +
'\r\n' +
'<!-- Please describe, if any, the tradeoffs that you found acceptable in
|
update_release_draft
Resource not accessible by integration
{
name: 'HttpError',
id: '9095953454',
status: 403,
response: {
url: 'https://api.github.com/repos/kubewarden/policy-sdk-go/releases',
status: 403,
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-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 15 May 2024 12:49:16 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
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': 'D8CF:28745E:119BD91:212D410:6644AF4B',
'x-ratelimit-limit': '15000',
'x-ratelimit-remaining': '14977',
'x-ratelimit-reset': '1715780931',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '23',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/releases/releases#create-a-release'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/kubewarden/policy-sdk-go/releases',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.8.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"target_commitish":"refs/pull/82/merge","name":"v2.0.1","tag_name":"","body":"## 🧰 Maintenance\\n\\n- chore(deps): update actions/checkout action to v4.1.5 (#80)\\n- chore(deps): update golangci/golangci-lint-action action to v6 (#81)\\n- chore(deps): update all non-major dependencies (#79)\\n- chore(deps): update golangci/golangci-lint-action action to v5 (#78)\\n- chore(deps): update all non-major dependencies (#77)\\n","draft":true,"prerelease":false,"make_latest":"true"}',
request: { retryCount: 1 }
},
event: {
id: '9095953454',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: '\r\n' +
'\r\n' +
'## Description\r\n' +
'\r\n' +
'Relates to https://github.com/kubewarden/cel-policy/issues/31\r\n' +
'\r\n' +
'Setting the json tags is needed as we marshal this struct in the cel-policy, `kw.oci.getManifest()` function to return it as map.\r\n' +
'\r\n' +
'To honour this new contract with the json tags, mark fields as exported.\r\n' +
'This also simplifies creating mocks with this type struct without type casting.\r\n' +
'\r\n' +
'\r\n' +
'Note that API is still backwards compatible as we were using the fields via the getters, which are untouched. Plus, cel-policy seems to be the first consumer of this. \r\n' +
'\r\n' +
'<!-- Please provide the link to the documentation related to your change, if applicable -->\r\n' +
'<!-- [Documentation](https://<insert your url>) -->\r\n' +
'\r\n' +
'## Test\r\n' +
'\r\n' +
'<!-- Please provides a short description about how to test your pullrequest -->\r\n' +
'To test this pull request, you can run the following
|
update_release_draft
HttpError: Resource not accessible by integration
at /home/runner/work/_actions/release-drafter/release-drafter/3f0f87098bd6b5c5b9a36d49c41d998ea58f9348/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/3f0f87098bd6b5c5b9a36d49c41d998ea58f9348/dist/index.js:30793:18)
HttpError: Resource not accessible by integration
at /home/runner/work/_actions/release-drafter/release-drafter/3f0f87098bd6b5c5b9a36d49c41d998ea58f9348/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/3f0f87098bd6b5c5b9a36d49c41d998ea58f9348/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '9095953454',
name: 'pull_request',
payload: {
action: 'edited',
changes: {
body: {
from: '\r\n' +
'\r\n' +
'## Description\r\n' +
'\r\n' +
'Relates to https://github.com/kubewarden/cel-policy/issues/31\r\n' +
'\r\n' +
'Setting the json tags is needed as we marshal this struct in the cel-policy, `kw.oci.getManifest()` function to return it as map.\r\n' +
'\r\n' +
'To honour this new contract with the json tags, mark fields as exported.\r\n' +
'This also simplifies creating mocks with this type struct without type casting.\r\n' +
'\r\n' +
'\r\n' +
'Note that API is still backwards compatible as we were using the fields via the getters, which are untouched. Plus, cel-policy seems to be the first consumer of this. \r\n' +
'\r\n' +
'<!-- Please provide the link to the documentation related to your change, if applicable -->\r\n' +
'<!-- [Documentation](https://<insert your url>) -->\r\n' +
'\r\n' +
'## Test\r\n' +
'\r\n' +
'<!-- Please provides a short description about how to test your pullrequest -->\r\n' +
'To test this pull request, you can run the following commands:\r\n' +
'\r\n' +
'<!--\r\n' +
'```shell\r\n' +
'cp <to_package_directory>\r\n' +
'go test\r\n' +
'```\r\n' +
'-->\r\n' +
'\r\n' +
'## Additional Information\r\n' +
'\r\n' +
'\r\n' +
'### Tradeoff\r\n' +
'\r\n' +
'<!-- Please describe, if any, the tradeoffs that you found acceptable in this pull request -->\r\n' +
'\r\n' +
'### Potential improvement\r\n' +
'\r\n' +
'<!-- Please describe, if any, potential improvement that you are envisioning -->\r\n'
}
},
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/9995?v=4',
created_at: '2021-11-03T14:57:36Z',
description: '',
html_url: 'https://github.com/enterprises/cncf',
id: 9995,
name: 'Cloud Native Computing Foundation',
node_id: 'E_kgDNJws',
slug: 'cncf',
updated_at: '2024-04-17T11:40:07Z',
website_url: 'https://cncf.io'
},
number: 82,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/80915497?v=4',
description: '',
events_url: 'https://api.github.com/orgs/kubewarden/events',
hooks_url: 'https://api.github.com/orgs/kubewarden/hooks',
id: 80915497,
issues_url: 'https://api.github.com/orgs/kubewarden/issues',
login: 'kubewarden',
members_url: 'https://api.github.com/orgs/kubewarden/members{/member}',
node_id: 'MDEyOk9yZ2FuaXphdGlvbjgwOTE1NDk3',
public_members_url: 'https://api.github.com/orgs/kubewarden/public_members{/member}',
repos_url: 'https://api.github.com/orgs/kubewarden/repos',
url: 'https://a
|