From d90aa532332d33f6dc9656fd4491a98441595a37 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 15:49:50 -0800 Subject: [PATCH] feat: update permission inputs (#296) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [@octokit/openapi](https://github.com/octokit/openapi) from 19.1.0 to 21.0.0.
Release notes

Sourced from @​octokit/openapi's releases.

v20.0.0

20.0.0 (2025-09-16)

chore

Features

BREAKING CHANGES

Commits

[![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) ---
Dependabot commands and options
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 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)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> --- .../workflows/update-permission-inputs.yml | 14 ++++++++++++-- action.yml | 6 +++++- package-lock.json | 9 +++++---- package.json | 2 +- scripts/generated/app-permissions.json | 19 ++++++++++++++++++- 5 files changed, 41 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update-permission-inputs.yml b/.github/workflows/update-permission-inputs.yml index d239fdf..502d52e 100644 --- a/.github/workflows/update-permission-inputs.yml +++ b/.github/workflows/update-permission-inputs.yml @@ -13,10 +13,13 @@ concurrency: permissions: contents: write + pull-requests: write jobs: update-permission-inputs: runs-on: ubuntu-latest + env: + COMMIT_MESSAGE: 'feat: update permission inputs' steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 @@ -27,6 +30,13 @@ jobs: - name: Run permission inputs update script run: node scripts/update-permission-inputs.js - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0 + id: auto-commit + uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1 with: - commit_message: 'feat: update permission inputs' + commit_message: ${{ env.COMMIT_MESSAGE }} + - name: Update PR title + if: github.event_name == 'pull_request' && steps.auto-commit.outputs.changes_detected == 'true' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr edit ${{ github.event.pull_request.number }} --title "${{ env.COMMIT_MESSAGE }}" diff --git a/action.yml b/action.yml index ab7d7f3..67616d4 100644 --- a/action.yml +++ b/action.yml @@ -37,12 +37,16 @@ inputs: description: "The level of permission to grant the access token to create, edit, delete, and list Codespaces. Can be set to 'read' or 'write'." permission-contents: 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'." + permission-custom-properties-for-organizations: + 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'." permission-dependabot-secrets: description: "The level of permission to grant the access token to manage Dependabot secrets. Can be set to 'read' or 'write'." permission-deployments: description: "The level of permission to grant the access token for deployments and deployment statuses. Can be set to 'read' or 'write'." permission-email-addresses: 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'." + permission-enterprise-custom-properties-for-organizations: + 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'." permission-environments: description: "The level of permission to grant the access token for managing repository environments. Can be set to 'read' or 'write'." permission-followers: @@ -68,7 +72,7 @@ inputs: permission-organization-custom-org-roles: description: "The level of permission to grant the access token for custom organization roles management. Can be set to 'read' or 'write'." permission-organization-custom-properties: - description: "The level of permission to grant the access token for custom property management. Can be set to 'read', 'write', or 'admin'." + 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'." permission-organization-custom-roles: description: "The level of permission to grant the access token for custom repository roles management. Can be set to 'read' or 'write'." permission-organization-events: diff --git a/package-lock.json b/package-lock.json index 868fbfc..c499d2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "undici": "^7.16.0" }, "devDependencies": { - "@octokit/openapi": "^19.1.0", + "@octokit/openapi": "^21.0.0", "@sinonjs/fake-timers": "^15.0.0", "ava": "^6.4.1", "c8": "^10.1.3", @@ -800,9 +800,9 @@ } }, "node_modules/@octokit/openapi": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi/-/openapi-19.1.0.tgz", - "integrity": "sha512-geiTDyEF3/QEFcb41IlIhl070NlqUStxiZycbSCmUn17Vrc7F+tHyDc34kavqprVe6I5z+2/SQQj9gz1w7UsVA==", + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi/-/openapi-21.0.0.tgz", + "integrity": "sha512-NybZQUNsa6yErKW1EEniJs0c/KFEFkXOrWlHk9IVFkY2OC5SQJMsjJnfCfVFyIuBjt8qBHGTopri7y/cKafxPQ==", "dev": true, "license": "MIT", "engines": { @@ -990,6 +990,7 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, diff --git a/package.json b/package.json index 61a9b7f..954cccf 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "undici": "^7.16.0" }, "devDependencies": { - "@octokit/openapi": "^19.1.0", + "@octokit/openapi": "^21.0.0", "@sinonjs/fake-timers": "^15.0.0", "ava": "^6.4.1", "c8": "^10.1.3", diff --git a/scripts/generated/app-permissions.json b/scripts/generated/app-permissions.json index 5a00882..aae22e8 100644 --- a/scripts/generated/app-permissions.json +++ b/scripts/generated/app-permissions.json @@ -187,6 +187,14 @@ "write" ] }, + "custom_properties_for_organizations": { + "type": "string", + "description": "The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property.", + "enum": [ + "read", + "write" + ] + }, "members": { "type": "string", "description": "The level of permission to grant the access token for organization teams and members.", @@ -221,7 +229,7 @@ }, "organization_custom_properties": { "type": "string", - "description": "The level of permission to grant the access token for custom property management.", + "description": "The level of permission to grant the access token for repository custom properties management at the organization level.", "enum": [ "read", "write", @@ -384,6 +392,15 @@ "read", "write" ] + }, + "enterprise_custom_properties_for_organizations": { + "type": "string", + "description": "The level of permission to grant the access token for organization custom properties management at the enterprise level.", + "enum": [ + "read", + "write", + "admin" + ] } }, "example": {