dependabot[bot] 73a9531b26 build(deps-dev): bump dotenv from 16.0.3 to 16.3.1 (#18)
[//]: # (dependabot-start)
⚠️  **Dependabot is rebasing this PR** ⚠️ 

Rebasing might not happen immediately, so don't worry if this takes some
time.

Note: if you make any changes to this PR yourself, they will take
precedence over the rebase.

---

[//]: # (dependabot-end)

Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.0.3 to
16.3.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md">dotenv's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/motdotla/dotenv/compare/v16.3.0...v16.3.1">16.3.1</a>
(2023-06-17)</h2>
<h3>Added</h3>
<ul>
<li>Add missing type definitions for <code>processEnv</code> and
<code>DOTENV_KEY</code> options. <a
href="https://redirect.github.com/motdotla/dotenv/pull/756">#756</a></li>
</ul>
<h2><a
href="https://github.com/motdotla/dotenv/compare/v16.2.0...v16.3.0">16.3.0</a>
(2023-06-16)</h2>
<h3>Added</h3>
<ul>
<li>Optionally pass <code>DOTENV_KEY</code> to options rather than
relying on <code>process.env.DOTENV_KEY</code>. Defaults to
<code>process.env.DOTENV_KEY</code> <a
href="https://redirect.github.com/motdotla/dotenv/pull/754">#754</a></li>
</ul>
<h2><a
href="https://github.com/motdotla/dotenv/compare/v16.1.4...v16.2.0">16.2.0</a>
(2023-06-15)</h2>
<h3>Added</h3>
<ul>
<li>Optionally write to your own target object rather than
<code>process.env</code>. Defaults to <code>process.env</code>. <a
href="https://redirect.github.com/motdotla/dotenv/pull/753">#753</a></li>
<li>Add import type URL to types file <a
href="https://redirect.github.com/motdotla/dotenv/pull/751">#751</a></li>
</ul>
<h2><a
href="https://github.com/motdotla/dotenv/compare/v16.1.3...v16.1.4">16.1.4</a>
(2023-06-04)</h2>
<h3>Added</h3>
<ul>
<li>Added <code>.github/</code> to <code>.npmignore</code> <a
href="https://redirect.github.com/motdotla/dotenv/pull/747">#747</a></li>
</ul>
<h2><a
href="https://github.com/motdotla/dotenv/compare/v16.1.2...v16.1.3">16.1.3</a>
(2023-05-31)</h2>
<h3>Removed</h3>
<ul>
<li>Removed <code>browser</code> keys for <code>path</code>,
<code>os</code>, and <code>crypto</code> in package.json. These were set
to false incorrectly as of 16.1. Instead, if using dotenv on the
front-end make sure to include polyfills for <code>path</code>,
<code>os</code>, and <code>crypto</code>. <a
href="https://github.com/Richienb/node-polyfill-webpack-plugin">node-polyfill-webpack-plugin</a>
provides these.</li>
</ul>
<h2><a
href="https://github.com/motdotla/dotenv/compare/v16.1.1...v16.1.2">16.1.2</a>
(2023-05-31)</h2>
<h3>Changed</h3>
<ul>
<li>Exposed private function <code>_configDotenv</code> as
<code>configDotenv</code>. <a
href="https://redirect.github.com/motdotla/dotenv/pull/744">#744</a></li>
</ul>
<h2><a
href="https://github.com/motdotla/dotenv/compare/v16.1.0...v16.1.1">16.1.1</a>
(2023-05-30)</h2>
<h3>Added</h3>
<ul>
<li>Added type definition for <code>decrypt</code> function</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Fixed <code>{crypto: false}</code> in
<code>packageJson.browser</code></li>
</ul>
<h2><a
href="https://github.com/motdotla/dotenv/compare/v16.0.3...v16.1.0">16.1.0</a>
(2023-05-30)</h2>
<h3>Added</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b13ca7bbda"><code>b13ca7b</code></a>
16.3.1</li>
<li><a
href="9bcc2e716c"><code>9bcc2e7</code></a>
Merge pull request <a
href="https://redirect.github.com/motdotla/dotenv/issues/756">#756</a>
from motdotla/type-fix</li>
<li><a
href="80fff4bbf0"><code>80fff4b</code></a>
Add type definition for DOTENV_KEY</li>
<li><a
href="50163a1de9"><code>50163a1</code></a>
update type file</li>
<li><a
href="5c7d7f5f3f"><code>5c7d7f5</code></a>
Add example demonstrating setting DOTENV_KEY</li>
<li><a
href="76d3682e10"><code>76d3682</code></a>
16.3.0</li>
<li><a
href="80219ae50e"><code>80219ae</code></a>
Merge pull request <a
href="https://redirect.github.com/motdotla/dotenv/issues/754">#754</a>
from motdotla/dotenv-key-option</li>
<li><a
href="dacd450158"><code>dacd450</code></a>
Add DOTENV_KEY to cli config and environment config options</li>
<li><a
href="f20e646603"><code>f20e646</code></a>
Add options.DOTENV_KEY</li>
<li><a
href="5861f6a94a"><code>5861f6a</code></a>
Add failing test demonstrating need for DOTENV_KEY option</li>
<li>Additional commits viewable in <a
href="https://github.com/motdotla/dotenv/compare/v16.0.3...v16.3.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=dotenv&package-manager=npm_and_yarn&previous-version=16.0.3&new-version=16.3.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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 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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-22 10:29:05 -07:00
2023-06-08 17:04:10 -07:00
2023-06-08 17:04:10 -07:00
2023-06-08 17:04:10 -07:00
2023-08-22 10:24:39 -07:00
2023-06-08 17:04:10 -07:00
2023-06-08 17:04:10 -07:00
2023-06-08 17:04:10 -07:00

Create GitHub App Token

GitHub Action for creating a GitHub App installation access token.

Usage

In order to use this action, you need to:

  1. Register new GitHub App
  2. Store the App's ID in your repository environment variables (example: APP_ID)
  3. 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,

  1. The token is scoped to the current repository.
  2. The token inherits all the installation's permissions.
  3. The token is set as output token which can be used in subsequent steps.
  4. The token is revoked in the post step of the action, which means it cannot be passed to another job.
  5. The token is masked, it cannot be logged accidentally. That is not a feature by the action, but by the GitHub Actions runner itself, due to the specific format of GitHub tokens.

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

MIT

Description
Mirror of github.com/actions/create-github-app-token
Readme 8 MiB
Languages
JavaScript 100%