fix(ci): add permissions to release workflow #1174
release-drafter.yml
on: push
update_release_draft
8s
Annotations
2 errors
|
update_release_draft
Resource not accessible by integration
{
name: 'HttpError',
id: '13567571621',
status: 403,
response: {
url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/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: 'Thu, 27 Feb 2025 13:30:34 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': '6460:1B6C84:180F133:3062E76:67C068FA',
'x-ratelimit-limit': '15000',
'x-ratelimit-remaining': '14688',
'x-ratelimit-reset': '1740664189',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '312',
'x-xss-protection': '0'
},
data: {
message: 'Resource not accessible by integration',
documentation_url: 'https://docs.github.com/rest/releases/releases#create-a-release',
status: '403'
}
},
request: {
method: 'POST',
url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/releases',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.18.0 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"target_commitish":"refs/heads/main","name":"","tag_name":"v1.18.1","body":"## Changes\\n\\n**[Human readable summary of changes]**\\n\\n* Release permissions (#1774) by @sthulb\\n* chore:Prep release 1.19.0-SNAPSHOT (#1773) by @github-actions\\n* chore(ci): Remove RELEASE variable (#1772) by @sthulb\\n* fix(ci): Permissions (#1771) by @sthulb\\n* build(deps): Fix Jackson version to max allowed by JSII (#1770) by @sthulb\\n* fix(ci): OSSF Changes (#1769) by @sthulb\\n* chore: Update netty version (#1768) by @sthulb\\n* chore: Set versions of transitive dependencies (#1767) by @sthulb\\n* chore: update Jackson in examples (#1766) by @sthulb\\n* fix(ci): update permissions (#1765) by @sthulb\\n* chore(ci): update permissions (#1764) by @sthulb\\n* docs: add roadmap page and include roadmap for 2025 (#1762) by @phipag\\n* build(deps): bump org.apache.maven.plugins:maven-jar-plugin from 3.4.1 to 3.4.2 (#1731) by @dependabot\\n* build(deps): bump aws.xray.recorder.version from 2.15.3 to 2.18.1 (#1726) by @dependabot\\n* build(deps): bump aws.sdk.version from 2.26.29 to 2.27.12 (#1724) by @dependabot\\n* chore(docs): load self hosted mermaid.js (#1720) by @dreamorosi\\n* fix: Allow empty responses as well as null response in AppConfig (#1673) by @chrisclayson\\n* build(deps): bump aws.sdk.version from 2.27.2 to 2.27.7 (#1715) by @dependabot\\n* build(deps): bump aws.sdk.version from 2.26.29 to 2.27.2 (#1714) by @dependabot\\n* build(deps): bump aws.sdk.version from 2.25.26 to 2.26.29 (#1713) by @dependabot\\n* build(deps): bump aws.sdk.version from 2.26.25 to 2.26.29 (#1712) by @dependabot\\n* chore: deprecate java1.8 al1 (#1706) by @jeromevdl\\n* chore: java 1.8 AL1 is deprecated, fix E2E tests (#1692) by @jeromevdl\\n* docs(public_reference): add Caylent as a public reference (#1704) by @jeromevdl\\n* build(dep
|
|
update_release_draft
HttpError: Resource not accessible by integration
at /home/runner/work/_actions/release-drafter/release-drafter/569eb7ee3a85817ab916c8f8ff03a5bd96c9c83e/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/569eb7ee3a85817ab916c8f8ff03a5bd96c9c83e/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '13567571621',
name: 'push',
payload: {
after: '394ab0ccfc99488fafeea4497e4e6df79cb75047',
base_ref: null,
before: '47e806f27475702a5267a6ebd8a061ba7decfbd5',
commits: [],
compare: 'https://github.com/aws-powertools/powertools-lambda-java/compare/47e806f27475...394ab0ccfc99',
created: false,
deleted: false,
enterprise: {
avatar_url: 'https://avatars.githubusercontent.com/b/1290?v=4',
created_at: '2019-11-13T18:05:41Z',
description: '',
html_url: 'https://github.com/enterprises/amazon',
id: 1290,
name: 'Amazon',
node_id: 'MDEwOkVudGVycHJpc2UxMjkw',
slug: 'amazon',
updated_at: '2024-09-30T21:02:30Z',
website_url: 'https://www.amazon.com/'
},
forced: true,
head_commit: {
author: {
email: '[email protected]',
name: 'Simon Thulbourn',
username: 'sthulb'
},
committer: {
email: '[email protected]',
name: 'GitHub',
username: 'web-flow'
},
distinct: true,
id: '394ab0ccfc99488fafeea4497e4e6df79cb75047',
message: 'fix(ci): add permissions to release workflow\n' +
'\n' +
'* Update .gitignore\n' +
'\n' +
'* update .gitignore\n' +
'\n' +
'* update permissions',
timestamp: '2025-02-26T11:51:18+01:00',
tree_id: '4b7e49b40976c1c80804a949fd86aa2bafcaa6b3',
url: 'https://github.com/aws-powertools/powertools-lambda-java/commit/394ab0ccfc99488fafeea4497e4e6df79cb75047'
},
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/129127638?v=4',
description: '',
events_url: 'https://api.github.com/orgs/aws-powertools/events',
hooks_url: 'https://api.github.com/orgs/aws-powertools/hooks',
id: 129127638,
issues_url: 'https://api.github.com/orgs/aws-powertools/issues',
login: 'aws-powertools',
members_url: 'https://api.github.com/orgs/aws-powertools/members{/member}',
node_id: 'O_kgDOB7JU1g',
public_members_url: 'https://api.github.com/orgs/aws-powertools/public_members{/member}',
repos_url: 'https://api.github.com/orgs/aws-powertools/repos',
url: 'https://api.github.com/orgs/aws-powertools'
},
pusher: { email: '[email protected]', name: 'sthulb' },
ref: 'refs/heads/main',
repository: {
allow_forking: true,
archive_url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/{archive_format}{/ref}',
archived: false,
assignees_url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/assignees{/user}',
blobs_url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/git/blobs{/sha}',
branches_url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/branches{/branch}',
clone_url: 'https://github.com/aws-powertools/powertools-lambda-java.git',
collaborators_url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/collaborators{/collaborator}',
comments_url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/comments{/number}',
commits_url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/commits{/sha}',
compare_url: 'https://api.github.com/repos/aws-powertools/powertools-lambda-java/compare/{base}...{head}',
contents_url: 'https://api.github.com/repos/aws-powertools/po
|