Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: actions/create-github-app-token
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.3
Choose a base ref
...
head repository: actions/create-github-app-token
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.4
Choose a head ref
  • 2 commits
  • 9 files changed
  • 3 contributors

Commits on May 2, 2025

  1. fix: permission input handling (#243)

    This pull request fixes the handling of permissions inputs.
    
    - Updated `getPermissionsFromInputs` in
    `lib/get-permissions-from-inputs.js` to use hyphens
    (`INPUT_PERMISSION-`) instead of underscores (`INPUT_PERMISSION_`) in
    input keys, added a check to skip empty values, and clarified behavior
    when no permissions are set.
    - Added a `shouldRetry` function to retry requests when server errors
    (HTTP status 500 or higher) occur in the `main` function in
    `lib/main.js` to prevent unnecessary retries.
    - Updated test cases in `tests/main-token-permissions-set.test.js` to
    match the new input key format with hyphens.
    - Added a default empty string for unset inputs (e.g.,
    `INPUT_PERMISSION-ADMINISTRATION`) in `tests/main.js` to simulate the
    behavior of the Actions runner.
    - Updated snapshots in `tests/snapshots/index.js.md` to reflect the
    updated hyphenated input keys in permissions.
    
    ---------
    
    Co-authored-by: Gregor Martynus <[email protected]>
    parkerbxyz and gr2m authored May 2, 2025
    Configuration menu
    Copy the full SHA
    2950cbc View commit details
    Browse the repository at this point in the history
  2. build(release): 2.0.4 [skip ci]

    ## [2.0.4](v2.0.3...v2.0.4) (2025-05-02)
    
    ### Bug Fixes
    
    * permission input handling ([#243](#243)) ([2950cbc](2950cbc))
    semantic-release-bot committed May 2, 2025
    Configuration menu
    Copy the full SHA
    4821f52 View commit details
    Browse the repository at this point in the history
Loading