dependabot[bot] 9577d5145a build(deps-dev): bump the development-dependencies group with 3 updates (#69)
Bumps the development-dependencies group with 3 updates:
[esbuild](https://github.com/evanw/esbuild),
[undici](https://github.com/nodejs/undici) and
[yaml](https://github.com/eemeli/yaml).

Updates `esbuild` from 0.19.4 to 0.19.5
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/evanw/esbuild/releases">esbuild's
releases</a>.</em></p>
<blockquote>
<h2>v0.19.5</h2>
<ul>
<li>
<p>Fix a regression in 0.19.0 regarding <code>paths</code> in
<code>tsconfig.json</code> (<a
href="https://redirect.github.com/evanw/esbuild/issues/3354">#3354</a>)</p>
<p>The fix in esbuild version 0.19.0 to process
<code>tsconfig.json</code> aliases before the
<code>--packages=external</code> setting unintentionally broke an edge
case in esbuild's handling of certain <code>tsconfig.json</code> aliases
where there are multiple files with the same name in different
directories. This release adjusts esbuild's behavior for this edge case
so that it passes while still processing aliases before
<code>--packages=external</code>. Please read the linked issue for more
details.</p>
</li>
<li>
<p>Fix a CSS <code>font</code> property minification bug (<a
href="https://redirect.github.com/evanw/esbuild/issues/3452">#3452</a>)</p>
<p>This release fixes a bug where esbuild's CSS minifier didn't insert a
space between the font size and the font family in the <code>font</code>
CSS shorthand property in the edge case where the original source code
didn't already have a space and the leading string token was shortened
to an identifier:</p>
<pre lang="css"><code>/* Original code */
.foo { font: 16px&quot;Menlo&quot;; }
<p>/* Old output (with --minify) */
.foo{font:16pxMenlo}</p>
<p>/* New output (with --minify) */
.foo{font:16px Menlo}
</code></pre></p>
</li>
<li>
<p>Fix bundling CSS with asset names containing spaces (<a
href="https://redirect.github.com/evanw/esbuild/issues/3410">#3410</a>)</p>
<p>Assets referenced via CSS <code>url()</code> tokens may cause esbuild
to generate invalid output when bundling if the file name contains
spaces (e.g. <code>url(image 2.png)</code>). With this release, esbuild
will now quote all bundled asset references in <code>url()</code> tokens
to avoid this problem. This only affects assets loaded using the
<code>file</code> and <code>copy</code> loaders.</p>
</li>
<li>
<p>Fix invalid CSS <code>url()</code> tokens in <code>@import</code>
rules (<a
href="https://redirect.github.com/evanw/esbuild/issues/3426">#3426</a>)</p>
<p>In the future, CSS <code>url()</code> tokens may contain additional
stuff after the URL. This is irrelevant today as no CSS specification
does this. But esbuild previously had a bug where using these tokens in
an <code>@import</code> rule resulted in malformed output. This bug has
been fixed.</p>
</li>
<li>
<p>Fix <code>browser</code> + <code>false</code> + <code>type:
module</code> in <code>package.json</code> (<a
href="https://redirect.github.com/evanw/esbuild/issues/3367">#3367</a>)</p>
<p>The <code>browser</code> field in <code>package.json</code> allows
you to map a file to <code>false</code> to have it be treated as an
empty file when bundling for the browser. However, if
<code>package.json</code> contains <code>&quot;type&quot;:
&quot;module&quot;</code> then all <code>.js</code> files will be
considered ESM, not CommonJS. Importing a named import from an empty
CommonJS file gives you undefined, but importing a named export from an
empty ESM file is a build error. This release changes esbuild's
interpretation of these files mapped to <code>false</code> in this
situation from ESM to CommonJS to avoid generating build errors for
named imports.</p>
</li>
<li>
<p>Fix a bug in top-level await error reporting (<a
href="https://redirect.github.com/evanw/esbuild/issues/3400">#3400</a>)</p>
<p>Using <code>require()</code> on a file that contains <a
href="https://v8.dev/features/top-level-await">top-level await</a> is
not allowed because <code>require()</code> must return synchronously and
top-level await makes that impossible. You will get a build error if you
try to bundle code that does this with esbuild. This release fixes a bug
in esbuild's error reporting code for complex cases of this situation
involving multiple levels of imports to get to the module containing the
top-level await.</p>
</li>
<li>
<p>Update to Unicode 15.1.0</p>
<p>The character tables that determine which characters form valid
JavaScript identifiers have been updated from Unicode version 15.0.0 to
the newly-released Unicode version 15.1.0. I'm not putting an example in
the release notes because all of the new characters will likely just
show up as little squares since fonts haven't been updated yet. But you
can read <a
href="https://www.unicode.org/versions/Unicode15.1.0/#Summary">https://www.unicode.org/versions/Unicode15.1.0/#Summary</a>
for more information about the changes.</p>
<p>This upgrade was contributed by <a
href="https://github.com/JLHwung"><code>@​JLHwung</code></a>.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/evanw/esbuild/blob/main/CHANGELOG.md">esbuild's
changelog</a>.</em></p>
<blockquote>
<h2>0.19.5</h2>
<ul>
<li>
<p>Fix a regression in 0.19.0 regarding <code>paths</code> in
<code>tsconfig.json</code> (<a
href="https://redirect.github.com/evanw/esbuild/issues/3354">#3354</a>)</p>
<p>The fix in esbuild version 0.19.0 to process
<code>tsconfig.json</code> aliases before the
<code>--packages=external</code> setting unintentionally broke an edge
case in esbuild's handling of certain <code>tsconfig.json</code> aliases
where there are multiple files with the same name in different
directories. This release adjusts esbuild's behavior for this edge case
so that it passes while still processing aliases before
<code>--packages=external</code>. Please read the linked issue for more
details.</p>
</li>
<li>
<p>Fix a CSS <code>font</code> property minification bug (<a
href="https://redirect.github.com/evanw/esbuild/issues/3452">#3452</a>)</p>
<p>This release fixes a bug where esbuild's CSS minifier didn't insert a
space between the font size and the font family in the <code>font</code>
CSS shorthand property in the edge case where the original source code
didn't already have a space and the leading string token was shortened
to an identifier:</p>
<pre lang="css"><code>/* Original code */
.foo { font: 16px&quot;Menlo&quot;; }
<p>/* Old output (with --minify) */
.foo{font:16pxMenlo}</p>
<p>/* New output (with --minify) */
.foo{font:16px Menlo}
</code></pre></p>
</li>
<li>
<p>Fix bundling CSS with asset names containing spaces (<a
href="https://redirect.github.com/evanw/esbuild/issues/3410">#3410</a>)</p>
<p>Assets referenced via CSS <code>url()</code> tokens may cause esbuild
to generate invalid output when bundling if the file name contains
spaces (e.g. <code>url(image 2.png)</code>). With this release, esbuild
will now quote all bundled asset references in <code>url()</code> tokens
to avoid this problem. This only affects assets loaded using the
<code>file</code> and <code>copy</code> loaders.</p>
</li>
<li>
<p>Fix invalid CSS <code>url()</code> tokens in <code>@import</code>
rules (<a
href="https://redirect.github.com/evanw/esbuild/issues/3426">#3426</a>)</p>
<p>In the future, CSS <code>url()</code> tokens may contain additional
stuff after the URL. This is irrelevant today as no CSS specification
does this. But esbuild previously had a bug where using these tokens in
an <code>@import</code> rule resulted in malformed output. This bug has
been fixed.</p>
</li>
<li>
<p>Fix <code>browser</code> + <code>false</code> + <code>type:
module</code> in <code>package.json</code> (<a
href="https://redirect.github.com/evanw/esbuild/issues/3367">#3367</a>)</p>
<p>The <code>browser</code> field in <code>package.json</code> allows
you to map a file to <code>false</code> to have it be treated as an
empty file when bundling for the browser. However, if
<code>package.json</code> contains <code>&quot;type&quot;:
&quot;module&quot;</code> then all <code>.js</code> files will be
considered ESM, not CommonJS. Importing a named import from an empty
CommonJS file gives you undefined, but importing a named export from an
empty ESM file is a build error. This release changes esbuild's
interpretation of these files mapped to <code>false</code> in this
situation from ESM to CommonJS to avoid generating build errors for
named imports.</p>
</li>
<li>
<p>Fix a bug in top-level await error reporting (<a
href="https://redirect.github.com/evanw/esbuild/issues/3400">#3400</a>)</p>
<p>Using <code>require()</code> on a file that contains <a
href="https://v8.dev/features/top-level-await">top-level await</a> is
not allowed because <code>require()</code> must return synchronously and
top-level await makes that impossible. You will get a build error if you
try to bundle code that does this with esbuild. This release fixes a bug
in esbuild's error reporting code for complex cases of this situation
involving multiple levels of imports to get to the module containing the
top-level await.</p>
</li>
<li>
<p>Update to Unicode 15.1.0</p>
<p>The character tables that determine which characters form valid
JavaScript identifiers have been updated from Unicode version 15.0.0 to
the newly-released Unicode version 15.1.0. I'm not putting an example in
the release notes because all of the new characters will likely just
show up as little squares since fonts haven't been updated yet. But you
can read <a
href="https://www.unicode.org/versions/Unicode15.1.0/#Summary">https://www.unicode.org/versions/Unicode15.1.0/#Summary</a>
for more information about the changes.</p>
<p>This upgrade was contributed by <a
href="https://github.com/JLHwung"><code>@​JLHwung</code></a>.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/evanw/esbuild/commit/a7fcc43fdb6b6edc58f781fe96328f4867f4b33e"><code>a7fcc43</code></a>
publish 0.19.5 to npm</li>
<li><a
href="https://github.com/evanw/esbuild/commit/58708094af0ffa53f73c73eb9c0a821e5b6ed778"><code>5870809</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3367">#3367</a>:
ignore ESM flag for disabled modules</li>
<li><a
href="https://github.com/evanw/esbuild/commit/d5f397f6e5dc6dbb70d2d4bbc5cefe725c2c853c"><code>d5f397f</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3354">#3354</a>:
<code>tsconfig.json</code> regression with <code>paths</code></li>
<li><a
href="https://github.com/evanw/esbuild/commit/72b1e8b4b0d14f9774e427079aae00f5e19c73c4"><code>72b1e8b</code></a>
resolver: move <code>IsExternal</code> into <code>PathPair</code></li>
<li><a
href="https://github.com/evanw/esbuild/commit/b0eddeac5018aadd24736e7f9e64444e05e4e0d2"><code>b0eddea</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3400">#3400</a>:
bug in top-level await error reporting</li>
<li><a
href="https://github.com/evanw/esbuild/commit/47fc80bdb3e57d17dff5787589b764f1541f475b"><code>47fc80b</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3426">#3426</a>:
improve invalid <code>url()</code> token parsing</li>
<li><a
href="https://github.com/evanw/esbuild/commit/d6973b938e4622db0f692d6eac846af60f7515e2"><code>d6973b9</code></a>
css: fix url token backtracking with leading space</li>
<li><a
href="https://github.com/evanw/esbuild/commit/30a43ec794a1b71f37c645f1f1b915090d54bf3e"><code>30a43ec</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3410">#3410</a>:
quote asset references in url tokens</li>
<li><a
href="https://github.com/evanw/esbuild/commit/a579bd80c24de9dd2ebce352e378b0f798bb8ba3"><code>a579bd8</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3452">#3452</a>:
insert space in <code>font</code> when minifying</li>
<li><a
href="https://github.com/evanw/esbuild/commit/cd91337d87e4f53e388a5a66d24e791957165b24"><code>cd91337</code></a>
update go 1.20.7 =&gt; 1.20.10</li>
<li>Additional commits viewable in <a
href="https://github.com/evanw/esbuild/compare/v0.19.4...v0.19.5">compare
view</a></li>
</ul>
</details>
<br />

Updates `undici` from 5.26.2 to 5.27.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/nodejs/undici/releases">undici's
releases</a>.</em></p>
<blockquote>
<h2>v5.27.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Use sets and reusable TextEncoder/TextDecoder instances by <a
href="https://github.com/kibertoad"><code>@​kibertoad</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2368">nodejs/undici#2368</a></li>
<li>feat: forward onRequestSent to handler by <a
href="https://github.com/ronag"><code>@​ronag</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2375">nodejs/undici#2375</a></li>
<li>skip bundle test on node 16 by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2377">nodejs/undici#2377</a></li>
<li>fix windows CI by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2379">nodejs/undici#2379</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v5.26.5...v5.27.0">https://github.com/nodejs/undici/compare/v5.26.5...v5.27.0</a></p>
<h2>v5.26.5</h2>
<h2>What's Changed</h2>
<ul>
<li>Drop race condition in connect-timeout test by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2360">nodejs/undici#2360</a></li>
<li>Remove a couple of unnecessary async functions by <a
href="https://github.com/kibertoad"><code>@​kibertoad</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2367">nodejs/undici#2367</a></li>
<li>Update namespace type with Fetch exports by <a
href="https://github.com/Ethan-Arrowood"><code>@​Ethan-Arrowood</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/2361">nodejs/undici#2361</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v5.26.4...v5.26.5">https://github.com/nodejs/undici/compare/v5.26.4...v5.26.5</a></p>
<h2>v5.26.4</h2>
<h2>What's Changed</h2>
<ul>
<li>use esbuild define/hooks by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2342">nodejs/undici#2342</a></li>
<li>fix request's arrayBuffer returning uint8 instead of arraybuffer by
<a href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in
<a
href="https://redirect.github.com/nodejs/undici/pull/2344">nodejs/undici#2344</a></li>
<li>fix: skip readMore call if parser is null or undefined by <a
href="https://github.com/iiAku"><code>@​iiAku</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2346">nodejs/undici#2346</a></li>
<li>test: first attempt for flaky fix by <a
href="https://github.com/metcoder95"><code>@​metcoder95</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2337">nodejs/undici#2337</a></li>
<li>test: only include WebSocket in WPT Report where it's landed by <a
href="https://github.com/panva"><code>@​panva</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2351">nodejs/undici#2351</a></li>
<li>Update DispatchInterceptor.md by <a
href="https://github.com/Uzlopak"><code>@​Uzlopak</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2354">nodejs/undici#2354</a></li>
<li>fix: Avoid error for stream() being aborted by <a
href="https://github.com/BobNobrain"><code>@​BobNobrain</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2355">nodejs/undici#2355</a></li>
<li>fix names with esbuild by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/2359">nodejs/undici#2359</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/iiAku"><code>@​iiAku</code></a> made
their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/2346">nodejs/undici#2346</a></li>
<li><a href="https://github.com/Uzlopak"><code>@​Uzlopak</code></a> made
their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/2354">nodejs/undici#2354</a></li>
<li><a
href="https://github.com/BobNobrain"><code>@​BobNobrain</code></a> made
their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/2355">nodejs/undici#2355</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v5.26.3...v5.26.4">https://github.com/nodejs/undici/compare/v5.26.3...v5.26.4</a></p>
<h2>v5.26.3</h2>
<p>No release notes provided.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/nodejs/undici/commit/41c253d0c23fd1cf63b8033d8ab61c2cf13e8c6e"><code>41c253d</code></a>
5.27.0</li>
<li><a
href="https://github.com/nodejs/undici/commit/6df0fe04f0631203a2433d77895b6e1a1a13727a"><code>6df0fe0</code></a>
fix windows CI (<a
href="https://redirect.github.com/nodejs/undici/issues/2379">#2379</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/3ec35ee23a7f2693bd6f9f707f6a20dc6de7a6b0"><code>3ec35ee</code></a>
skip bundle test on node 16 (<a
href="https://redirect.github.com/nodejs/undici/issues/2377">#2377</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/67e714d0d55848a56616fa98394c207a835447c8"><code>67e714d</code></a>
feat: forward onRequestSent to handler (<a
href="https://redirect.github.com/nodejs/undici/issues/2375">#2375</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/8050ec0224a51d44f776364820e6a16112fb4781"><code>8050ec0</code></a>
Use sets and reusable TextEncoder/TextDecoder instances (<a
href="https://redirect.github.com/nodejs/undici/issues/2368">#2368</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/9197790ae0d015b40b75fd0c5cdb7420704b5272"><code>9197790</code></a>
Bumped v5.26.5</li>
<li><a
href="https://github.com/nodejs/undici/commit/c31bd88979c04e72ff5f2869b71c630720422ab8"><code>c31bd88</code></a>
Update namespace type with Fetch exports (<a
href="https://redirect.github.com/nodejs/undici/issues/2361">#2361</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/24db5d4eaf8b747e7c9bde4faf797943b6f73c8d"><code>24db5d4</code></a>
Remove a couple of unnecessary async functions (<a
href="https://redirect.github.com/nodejs/undici/issues/2367">#2367</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/63afd9b5e28380dc86de29ade69adaad7efcd231"><code>63afd9b</code></a>
Drop race condition in connect-timeout test (<a
href="https://redirect.github.com/nodejs/undici/issues/2360">#2360</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/dea70e27e4d14952eb7b96da021eb44d24d1159e"><code>dea70e2</code></a>
Bumped v5.26.4</li>
<li>Additional commits viewable in <a
href="https://github.com/nodejs/undici/compare/v5.26.2...v5.27.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `yaml` from 2.3.2 to 2.3.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eemeli/yaml/releases">yaml's
releases</a>.</em></p>
<blockquote>
<h2>v2.3.3</h2>
<ul>
<li>Do not throw error on malformed URI escape in tag (<a
href="https://redirect.github.com/eemeli/yaml/issues/498">#498</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/eemeli/yaml/commit/e8576e852035900844d2cc2d502a2139a1610f48"><code>e8576e8</code></a>
2.3.3</li>
<li><a
href="https://github.com/eemeli/yaml/commit/3fb6c1f6310f728a5670ce5d63f610c65b520db9"><code>3fb6c1f</code></a>
chore: Refresh lockfile</li>
<li><a
href="https://github.com/eemeli/yaml/commit/69d881c96443b6cb9aa8d8f65cf615f4b1015b98"><code>69d881c</code></a>
fix: Do not throw error on malformed URI escape in tag (<a
href="https://redirect.github.com/eemeli/yaml/issues/498">#498</a>)</li>
<li>See full diff in <a
href="https://github.com/eemeli/yaml/compare/v2.3.2...v2.3.3">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>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
2023-11-01 09:29:43 -07:00
2023-10-06 12:54:48 -07:00
2023-06-08 17:04:10 -07:00
2023-10-06 12:54:48 -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)

Create a token for the current repository

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

Create a token for all repositories in the current owner's installation

on: [workflow_dispatch]

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 }}
          owner: ${{ github.repository_owner }}
      - uses: peter-evans/create-or-update-comment@v3
        with:
          token: ${{ steps.app-token.outputs.token }}
          issue-number: ${{ github.event.issue.number }}
          body: "Hello, World!"

Create a token for multiple repositories in the current owner's installation

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 }}
          owner: ${{ github.repository_owner }}
          repositories: "repo1,repo2"
      - uses: peter-evans/create-or-update-comment@v3
        with:
          token: ${{ steps.app-token.outputs.token }}
          issue-number: ${{ github.event.issue.number }}
          body: "Hello, World!"

Create a token for all repositories in another owner's installation

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 }}
          owner: another-owner
      - uses: peter-evans/create-or-update-comment@v3
        with:
          token: ${{ steps.app-token.outputs.token }}
          issue-number: ${{ github.event.issue.number }}
          body: "Hello, World!"

Create tokens for multiple user or organization accounts

You can use a matrix strategy to create tokens for multiple user or organization accounts.

Note

See this documentation for information on using multiline strings in workflows.

on: [workflow_dispatch]

jobs:
  set-matrix:
    runs-on: ubuntu-latest
    outputs:
      matrix: ${{steps.set.outputs.matrix }}
    steps:
      - id: set
        run: echo 'matrix=[{"owner":"owner1"},{"owner":"owner2","repos":["repo1"]}]' >>"$GITHUB_OUTPUT"

  use-matrix:
    name: '@${{ matrix.owners-and-repos.owner }} installation'
    needs: [set-matrix]
    runs-on: ubuntu-latest
    strategy:
      matrix:
        owners-and-repos: ${{ fromJson(needs.set-matrix.outputs.matrix) }}

    steps:
      - uses: actions/create-github-app-token@v1
        id: app-token
        with:
          app_id: ${{ vars.APP_ID }}
          private_key: ${{ secrets.PRIVATE_KEY }}
          owner: ${{ matrix.owners-and-repos.owner }}
          repositories: ${{ join(matrix.owners-and-repos.repos) }}
      - uses: octokit/request-action@v2.x
        id: get-installation-repositories
        with:
          route: GET /installation/repositories
        env:
          GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
      - run: echo "$MULTILINE_JSON_STRING"
        env:
          MULTILINE_JSON_STRING: ${{ steps.get-installation-repositories.outputs.data }}

Inputs

app-id

Required: GitHub App ID.

private-key

Required: GitHub App private key.

owner

Optional: GitHub App installation owner. If empty, defaults to the current repository owner.

repositories

Optional: Comma-separated list of repositories to grant access to.

Note

If owner is set and repositories is empty, access will be scoped to all repositories in the provided repository owner's installation. If owner and repositories are empty, access will be scoped to only the current repository.

skip-token-revoke

Optional: If truthy, the token will not be revoked when the current job is complete.

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 or repositories if set.
  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. Unless the skip-token-revoke input is set to a truthy value, 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.

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

S
Description
Mirror of github.com/actions/create-github-app-token (RFC #229 task #109)
Readme 8.1 MiB
Languages
JavaScript 100%