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: pypa/gh-action-pypi-publish
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.8.1
Choose a base ref
...
head repository: pypa/gh-action-pypi-publish
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.2
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 21, 2023

  1. oidc-exchange: avoid splitting the error message

    Signed-off-by: William Woodruff <william@trailofbits.com>
    woodruffw committed Mar 21, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    benjamn Ben Newman
    Copy the full SHA
    ea29ccc View commit details
  2. Merge pull request #134 from trail-of-forks/tob-better-errors

    oidc-exchange: avoid splitting the error message
    webknjaz authored Mar 21, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f3ce18f View commit details
Showing with 1 addition and 4 deletions.
  1. +1 −4 oidc-exchange.py
5 changes: 1 addition & 4 deletions oidc-exchange.py
Original file line number Diff line number Diff line change
@@ -55,10 +55,7 @@ def die(msg: str) -> NoReturn:
with _GITHUB_STEP_SUMMARY.open("a", encoding="utf-8") as io:
print(msg, file=io)

# NOTE: `msg` is Markdown formatted, so we emit only the header line to
# avoid clogging the console log with a full Markdown formatted document.
header = msg.splitlines()[0]
print(f"::error::OIDC exchange failure: {header}", file=sys.stderr)
print(f"::error::OIDC exchange failure: {msg}", file=sys.stderr)
sys.exit(1)