GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: validate private-key input by parkerbxyz · Pull Request #376 · actions/create-github-app-token

Conversation

@parkerbxyz

@parkerbxyz parkerbxyz commented May 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

When private-key resolves to an empty value, the action currently lets Octokit fail with [@octokit/auth-app] privateKey option is required, which points at an implementation detail instead of the action input. This adds action-level validation so users get the same non-empty input guidance used for missing client-id or app-id.

  • Validate private-key before creating app auth
  • Add a regression test and snapshot for the missing private key path
  • Leave valid private key handling unchanged, including escaped newlines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@parkerbxyz
Validate private-key input
be11a5b
Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings May 12, 2026 22:54
@parkerbxyz
parkerbxyz requested a review from a team as a code owner May 12, 2026 22:54
Copilot started reviewing on behalf of parkerbxyz May 12, 2026 22:55
View session
Copilot AI reviewed May 12, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds action-level validation for the private-key input so users get a clear, action-specific error when it resolves to an empty value, rather than an Octokit implementation-detail failure.

Changes:

  • Validate private-key is a non-empty string before creating app auth.
  • Add a regression test covering the missing/empty private-key case.
  • Update test snapshots to reflect the new error message on stderr/stdout.
Show a summary per file
File Description
main.js Adds explicit early validation/error for empty private-key input.
tests/main-missing-private-key.test.js New regression test ensuring the action fails with the intended message when private-key is empty.
tests/index.js.snapshot Adds snapshots for the new test’s stdout/stderr output.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 0

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@parkerbxyz parkerbxyz changed the title Validate private-key input Validate private-key input May 12, 2026
@parkerbxyz parkerbxyz linked an issue May 12, 2026 that may be closed by this pull request
privateKey option is required #375
Closed
@parkerbxyz parkerbxyz changed the title Validate private-key input fix: validate private-key input May 12, 2026
@parkerbxyz parkerbxyz self-assigned this May 12, 2026
@parkerbxyz
parkerbxyz merged commit f24bbd8 into main May 12, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@parkerbxyz
parkerbxyz deleted the parkerbxyz/fix-private-key-option-required branch May 12, 2026 23:05
@create-app-token-action-releaser create-app-token-action-releaser Bot mentioned this pull request May 12, 2026
chore(main): release 3.2.0 #370
Merged
parkerbxyz added a commit that referenced this pull request May 12, 2026
@create-app-token-action-releaser @parkerbxyz
chore(main): release 3.2.0 (#370)
bcd2ba4
🤖 I have created a release *beep* *boop*
---


##
[3.2.0](v3.1.1...v3.2.0)
(2026-05-12)


### Features

* add support for enterprise-level GitHub Apps
([#263](#263))
([952a2a7](952a2a7))
* support full repository names in `repositories` input
([#372](#372))
([85eb8dd](85eb8dd))


### Bug Fixes

* **deps:** bump @actions/core from 3.0.0 to 3.0.1 in the
production-dependencies group
([#364](#364))
([43e5c34](43e5c34))
* validate private-key input
([#376](#376))
([f24bbd8](f24bbd8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: create-app-token-action-releaser[bot] <135574722+create-app-token-action-releaser[bot]@users.noreply.github.com>
Co-authored-by: parkerbxyz <[email protected]>
@parkerbxyz parkerbxyz mentioned this pull request May 12, 2026
privateKey option is required #375
Closed
This was referenced May 15, 2026
chore(ci)(deps): bump actions/create-github-app-token from 2.2.2 to 3.2.0 CopilotKit/CopilotKit#4854
Merged
chore(deps): update actions/create-github-app-token action to v3.2.0 lacolaco/blog.lacolaco.net#1682
Merged
chore(deps): update actions/create-github-app-token action to v3.2.0 lacolaco/zenn#280
Merged
@github-actions github-actions Bot mentioned this pull request May 30, 2026
chore(deps): update actions/create-github-app-token action to v3.2.0 - autoclosed codize-dev/sandbox#73
Merged
1 task
@coderabbitai coderabbitai Bot mentioned this pull request Jul 30, 2026
feat(ci): replace release-drafter with release-please (#632) opendefensecloud/solution-arsenal#676
Merged
4 tasks done
@claude claude Bot mentioned this pull request Aug 1, 2026
chore(deps): bump actions/create-github-app-token from 2 to 3 dimagi/open-chat-studio#4033
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Aug 14, 2026
ci: push assign-ids commits under an app identity existential-engineering/catalog#622
Merged
@sh3lan93 sh3lan93 mentioned this pull request Sep 4, 2026
chore(ci): workflows pin actions on the deprecated Node 20 runtime (and one on Node 16) sh3lan93/mobile-automator#182
Closed
5 tasks
@github-actions github-actions Bot mentioned this pull request Sep 18, 2026
Bump actions/create-github-app-token from 1 to 3 EHS-Data-Standards/somamech#5
Merged
heym3931-star
heym3931-star approved these changes Oct 10, 2026
View reviewed changes

@heym3931-star heym3931-star left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thật sự tôi không thể nào hiểu nổi

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
+1 more reviewer
@heym3931-star heym3931-star heym3931-star approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@parkerbxyz parkerbxyz

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

privateKey option is required

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@parkerbxyz @heym3931-star
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.