Skip to content

Commit d90aa53

Browse files
feat: update permission inputs (#296)
Bumps [@octokit/openapi](https://github.com/octokit/openapi) from 19.1.0 to 21.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/octokit/openapi/releases"><code>@​octokit/openapi</code>'s releases</a>.</em></p> <blockquote> <h2>v20.0.0</h2> <h1><a href="https://github.com/octokit/openapi/compare/v19.1.0...v20.0.0">20.0.0</a> (2025-09-16)</h1> <h3>chore</h3> <ul> <li><strong>deps:</strong> update dependency sort-keys to v6 (<a href="https://redirect.github.com/octokit/openapi/issues/500">#500</a>) (<a href="https://github.com/octokit/openapi/commit/262f87fe9825559a2c6edb2bf6534eab4622ee28">262f87f</a>)</li> </ul> <h3>Features</h3> <ul> <li>new Projects v2 endpoints, new code scanning dismissal endpoints, many other endpoints (<a href="https://redirect.github.com/octokit/openapi/issues/503">#503</a>) (<a href="https://github.com/octokit/openapi/commit/0b92729176bd70d4d5274a765fa00107dfd5017d">0b92729</a>)</li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li><strong>deps:</strong> Remove GHES 3.13</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/octokit/openapi/commit/262f87fe9825559a2c6edb2bf6534eab4622ee28"><code>262f87f</code></a> chore(deps): update dependency sort-keys to v6 (<a href="https://redirect.github.com/octokit/openapi/issues/500">#500</a>)</li> <li><a href="https://github.com/octokit/openapi/commit/0b92729176bd70d4d5274a765fa00107dfd5017d"><code>0b92729</code></a> feat: new Projects v2 endpoints, new code scanning dismissal endpoints, many ...</li> <li><a href="https://github.com/octokit/openapi/commit/a74dd44fb2a8c3c20e7143eb71ddaf86b9b0e639"><code>a74dd44</code></a> chore(deps): update dependency <code>@​octokit/core</code> to v7 (<a href="https://redirect.github.com/octokit/openapi/issues/496">#496</a>)</li> <li><a href="https://github.com/octokit/openapi/commit/3a7a9ea8cc65a3f7fa27436a2072080b565ab207"><code>3a7a9ea</code></a> build(deps): lock file maintenance (<a href="https://redirect.github.com/octokit/openapi/issues/498">#498</a>)</li> <li><a href="https://github.com/octokit/openapi/commit/d6be26fc7e8cd0eb798a512c5107d16ccb2aacb4"><code>d6be26f</code></a> ci(action): update actions/checkout action to v5 (<a href="https://redirect.github.com/octokit/openapi/issues/499">#499</a>)</li> <li><a href="https://github.com/octokit/openapi/commit/6ae358ed6fb0a184cc75e2dab1f06079ff20d66b"><code>6ae358e</code></a> ci(action): update actions/setup-node action to v5 (<a href="https://redirect.github.com/octokit/openapi/issues/502">#502</a>)</li> <li><a href="https://github.com/octokit/openapi/commit/f02c5e21bac37e778aedac8ba39b4d62c4b6a7a5"><code>f02c5e2</code></a> ci(action): update gr2m/release-notifier-action action to v2 (<a href="https://redirect.github.com/octokit/openapi/issues/501">#501</a>)</li> <li>See full diff in <a href="https://github.com/octokit/openapi/compare/v19.1.0...v20.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@octokit/openapi&package-manager=npm_and_yarn&previous-version=19.1.0&new-version=20.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> > **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
1 parent 55e2a4b commit d90aa53

File tree

5 files changed

+41
-9
lines changed

5 files changed

+41
-9
lines changed

.github/workflows/update-permission-inputs.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@ concurrency:
1313

1414
permissions:
1515
contents: write
16+
pull-requests: write
1617

1718
jobs:
1819
update-permission-inputs:
1920
runs-on: ubuntu-latest
21+
env:
22+
COMMIT_MESSAGE: 'feat: update permission inputs'
2023
steps:
2124
- uses: actions/checkout@v6
2225
- uses: actions/setup-node@v6
@@ -27,6 +30,13 @@ jobs:
2730
- name: Run permission inputs update script
2831
run: node scripts/update-permission-inputs.js
2932
- name: Commit changes
30-
uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
33+
id: auto-commit
34+
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
3135
with:
32-
commit_message: 'feat: update permission inputs'
36+
commit_message: ${{ env.COMMIT_MESSAGE }}
37+
- name: Update PR title
38+
if: github.event_name == 'pull_request' && steps.auto-commit.outputs.changes_detected == 'true'
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: |
42+
gh pr edit ${{ github.event.pull_request.number }} --title "${{ env.COMMIT_MESSAGE }}"

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ inputs:
3737
description: "The level of permission to grant the access token to create, edit, delete, and list Codespaces. Can be set to 'read' or 'write'."
3838
permission-contents:
3939
description: "The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. Can be set to 'read' or 'write'."
40+
permission-custom-properties-for-organizations:
41+
description: "The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property. Can be set to 'read' or 'write'."
4042
permission-dependabot-secrets:
4143
description: "The level of permission to grant the access token to manage Dependabot secrets. Can be set to 'read' or 'write'."
4244
permission-deployments:
4345
description: "The level of permission to grant the access token for deployments and deployment statuses. Can be set to 'read' or 'write'."
4446
permission-email-addresses:
4547
description: "The level of permission to grant the access token to manage the email addresses belonging to a user. Can be set to 'read' or 'write'."
48+
permission-enterprise-custom-properties-for-organizations:
49+
description: "The level of permission to grant the access token for organization custom properties management at the enterprise level. Can be set to 'read', 'write', or 'admin'."
4650
permission-environments:
4751
description: "The level of permission to grant the access token for managing repository environments. Can be set to 'read' or 'write'."
4852
permission-followers:
@@ -68,7 +72,7 @@ inputs:
6872
permission-organization-custom-org-roles:
6973
description: "The level of permission to grant the access token for custom organization roles management. Can be set to 'read' or 'write'."
7074
permission-organization-custom-properties:
71-
description: "The level of permission to grant the access token for custom property management. Can be set to 'read', 'write', or 'admin'."
75+
description: "The level of permission to grant the access token for repository custom properties management at the organization level. Can be set to 'read', 'write', or 'admin'."
7276
permission-organization-custom-roles:
7377
description: "The level of permission to grant the access token for custom repository roles management. Can be set to 'read' or 'write'."
7478
permission-organization-events:

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"undici": "^7.16.0"
2424
},
2525
"devDependencies": {
26-
"@octokit/openapi": "^19.1.0",
26+
"@octokit/openapi": "^21.0.0",
2727
"@sinonjs/fake-timers": "^15.0.0",
2828
"ava": "^6.4.1",
2929
"c8": "^10.1.3",

scripts/generated/app-permissions.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,14 @@
187187
"write"
188188
]
189189
},
190+
"custom_properties_for_organizations": {
191+
"type": "string",
192+
"description": "The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property.",
193+
"enum": [
194+
"read",
195+
"write"
196+
]
197+
},
190198
"members": {
191199
"type": "string",
192200
"description": "The level of permission to grant the access token for organization teams and members.",
@@ -221,7 +229,7 @@
221229
},
222230
"organization_custom_properties": {
223231
"type": "string",
224-
"description": "The level of permission to grant the access token for custom property management.",
232+
"description": "The level of permission to grant the access token for repository custom properties management at the organization level.",
225233
"enum": [
226234
"read",
227235
"write",
@@ -384,6 +392,15 @@
384392
"read",
385393
"write"
386394
]
395+
},
396+
"enterprise_custom_properties_for_organizations": {
397+
"type": "string",
398+
"description": "The level of permission to grant the access token for organization custom properties management at the enterprise level.",
399+
"enum": [
400+
"read",
401+
"write",
402+
"admin"
403+
]
387404
}
388405
},
389406
"example": {

0 commit comments

Comments
 (0)