6d98b259d9c6bef17db279eb4aefbbd031400ba4
Bumps the production-dependencies group with 3 updates: [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core), [@octokit/auth-app](https://github.com/octokit/auth-app.js) and [@octokit/request](https://github.com/octokit/request.js). Updates `@actions/core` from 1.10.0 to 1.10.1 <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md"><code>@actions/core</code>'s changelog</a>.</em></p> <blockquote> <h3>1.10.1</h3> <ul> <li>Fix error message reference in oidc utils <a href="https://redirect.github.com/actions/toolkit/pull/1511">#1511</a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/actions/toolkit/commits/HEAD/packages/core">compare view</a></li> </ul> </details> <br /> Updates `@octokit/auth-app` from 6.0.0 to 6.0.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/octokit/auth-app.js/releases"><code>@octokit/auth-app</code>'s releases</a>.</em></p> <blockquote> <h2>v6.0.1</h2> <h2><a href="https://github.com/octokit/auth-app.js/compare/v6.0.0...v6.0.1">6.0.1</a> (2023-09-23)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> update dependency <code>@octokit/types</code> to v12 (<a href="https://redirect.github.com/octokit/auth-app.js/issues/535">#535</a>) (<a href="https://github.com/octokit/auth-app.js/commit/d7157719c2d28f9ffdfada61139b0d4984723a65">d715771</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/octokit/auth-app.js/commit/d7157719c2d28f9ffdfada61139b0d4984723a65"><code>d715771</code></a> fix(deps): update dependency <code>@octokit/types</code> to v12 (<a href="https://redirect.github.com/octokit/auth-app.js/issues/535">#535</a>)</li> <li><a href="https://github.com/octokit/auth-app.js/commit/62cfc5bbce931e056852e91bdc3d479e3e399881"><code>62cfc5b</code></a> ci(action): update peter-evans/create-or-update-comment digest to 46da6c0</li> <li><a href="https://github.com/octokit/auth-app.js/commit/b1c796928a8d59af23749d06e1f75e5d047b28f8"><code>b1c7969</code></a> build(deps): lock file maintenance (<a href="https://redirect.github.com/octokit/auth-app.js/issues/533">#533</a>)</li> <li><a href="https://github.com/octokit/auth-app.js/commit/f584646566c0de02e85cecf40015a44f15b22028"><code>f584646</code></a> ci(action): update peter-evans/create-or-update-comment digest to 1f6c514</li> <li><a href="https://github.com/octokit/auth-app.js/commit/414bea3cc3bab71bc0148747678bddb0a4c6b9f9"><code>414bea3</code></a> build(deps): lock file maintenance (<a href="https://redirect.github.com/octokit/auth-app.js/issues/531">#531</a>)</li> <li><a href="https://github.com/octokit/auth-app.js/commit/47e4bd1660c3faed2690ade1086ef96657e0b88a"><code>47e4bd1</code></a> build(deps): lock file maintenance (<a href="https://redirect.github.com/octokit/auth-app.js/issues/530">#530</a>)</li> <li><a href="https://github.com/octokit/auth-app.js/commit/5d3973e9355ba5fb8c1c65f5710722a58d75dfbc"><code>5d3973e</code></a> ci(action): update peter-evans/create-or-update-comment digest to 223779b</li> <li><a href="https://github.com/octokit/auth-app.js/commit/192bd894e4e2a71faf2e5996eb7287deb1ad7fdc"><code>192bd89</code></a> ci(action): update peter-evans/create-or-update-comment digest to 46846e5</li> <li><a href="https://github.com/octokit/auth-app.js/commit/77cb45b6542ca1dd5d0086864e28fea0ddbe9297"><code>77cb45b</code></a> ci(action): update actions/checkout action to v4</li> <li><a href="https://github.com/octokit/auth-app.js/commit/1c0d530c6b85890853b860b16f0c11e106bb676f"><code>1c0d530</code></a> build(deps): lock file maintenance (<a href="https://redirect.github.com/octokit/auth-app.js/issues/524">#524</a>)</li> <li>Additional commits viewable in <a href="https://github.com/octokit/auth-app.js/compare/v6.0.0...v6.0.1">compare view</a></li> </ul> </details> <br /> Updates `@octokit/request` from 8.1.1 to 8.1.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/octokit/request.js/releases"><code>@octokit/request</code>'s releases</a>.</em></p> <blockquote> <h2>v8.1.2</h2> <h2><a href="https://github.com/octokit/request.js/compare/v8.1.1...v8.1.2">8.1.2</a> (2023-09-23)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>deps:</strong> update dependency <code>@octokit/types</code> to v12 (<a href="https://redirect.github.com/octokit/request.js/issues/637">#637</a>) (<a href="https://github.com/octokit/request.js/commit/8fa4d612ad80bdf4c4c7da0efd0d6ad47bb6978b">8fa4d61</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/octokit/request.js/commit/8fa4d612ad80bdf4c4c7da0efd0d6ad47bb6978b"><code>8fa4d61</code></a> fix(deps): update dependency <code>@octokit/types</code> to v12 (<a href="https://redirect.github.com/octokit/request.js/issues/637">#637</a>)</li> <li><a href="https://github.com/octokit/request.js/commit/b4b18153458cdbeae099dcc072cac88d8e2a81c5"><code>b4b1815</code></a> ci(action): update peter-evans/create-or-update-comment digest to 46da6c0</li> <li><a href="https://github.com/octokit/request.js/commit/77683b9dd783675622720e44d6e281d95eb86ab3"><code>77683b9</code></a> ci(action): update peter-evans/create-or-update-comment digest to 1f6c514</li> <li><a href="https://github.com/octokit/request.js/commit/45f319bac6c1281e42e989f4b97cf45cf8e4cd40"><code>45f319b</code></a> ci(action): update peter-evans/create-or-update-comment digest to 223779b</li> <li><a href="https://github.com/octokit/request.js/commit/d0a545f389d55a6677bd2ad4084fca7958ba9ade"><code>d0a545f</code></a> ci(action): update peter-evans/create-or-update-comment digest to 46846e5 (<a href="https://redirect.github.com/octokit/request.js/issues/631">#631</a>)</li> <li><a href="https://github.com/octokit/request.js/commit/1ba853ad70ba0c8e856f89628aa1df0e26aadc75"><code>1ba853a</code></a> ci(action): update actions/checkout action to v4</li> <li><a href="https://github.com/octokit/request.js/commit/5f5c4bf1d7acb9670c5347051afb62f9453e7121"><code>5f5c4bf</code></a> chore(deps): update dependency prettier to v3.0.3</li> <li><a href="https://github.com/octokit/request.js/commit/f964d3d249698d6fd656dd978876c8d84e20c09c"><code>f964d3d</code></a> ci(action): update peter-evans/create-or-update-comment digest to 94ff342</li> <li><a href="https://github.com/octokit/request.js/commit/29edb28325de3a60442e15c7d45f20be9c4d350d"><code>29edb28</code></a> ci(action): update peter-evans/create-or-update-comment digest to 8c21c80</li> <li><a href="https://github.com/octokit/request.js/commit/05eb0a9ab60922ea7b283082afb89798c4eb6108"><code>05eb0a9</code></a> ci(action): update peter-evans/create-or-update-comment digest to bb291f6 (<a href="https://redirect.github.com/octokit/request.js/issues/626">#626</a>)</li> <li>Additional commits viewable in <a href="https://github.com/octokit/request.js/compare/v8.1.1...v8.1.2">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Create GitHub App Token
GitHub Action for creating a GitHub App installation access token.
Usage
In order to use this action, you need to:
- Register new GitHub App
- Store the App's ID in your repository environment variables (example:
APP_ID) - Store the App's private key in your repository secrets (example:
PRIVATE_KEY)
Minimal usage
on: [issues]
jobs:
hello-world:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app_id: ${{ vars.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: peter-evans/create-or-update-comment@v3
with:
token: ${{ steps.app-token.outputs.token }}
issue-number: ${{ github.event.issue.number }}
body: "Hello, World!"
Use app token with actions/checkout
on: [pull_request]
jobs:
auto-format:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
# required
app_id: ${{ vars.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/checkout@v3
with:
token: ${{ steps.app-token.outputs.token }}
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false
- uses: creyD/prettier_action@v4.3
with:
github_token: ${{ steps.app-token.outputs.token }}
Inputs
app_id
Required: GitHub App ID.
private_key
Required: GitHub App private key.
Outputs
token
GitHub App installation access token.
How it works
The action creates an installation access token using the POST /app/installations/{installation_id}/access_tokens endpoint. By default,
- The token is scoped to the current repository.
- The token inherits all the installation's permissions.
- The token is set as output
tokenwhich can be used in subsequent steps. - The token is revoked in the
poststep of the action, which means it cannot be passed to another job. - The token is masked, it cannot be logged accidentally.
Note
Installation permissions can differ from the app's permissions they belong to. Installation permissions are set when an app is installed on an account. When the app adds more permissions after the installation, an account administrator will have to approve the new permissions before they are set on the installation.
License
Description
Languages
JavaScript
100%