Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions Failing Due to "Not Found" Error in actions/github-script When Posting Comments on Issues #3271

Open
gladjohn opened this issue Feb 27, 2025 · 0 comments

Comments

@gladjohn
Copy link
Contributor

Microsoft.Identity.Web Library

Microsoft.Identity.Web

Microsoft.Identity.Web version

latest

Web app

Not Applicable

Web API

Not Applicable

Token cache serialization

Not Applicable

Description

GitHub Actions workflow for microsoft-identity-web is failing during the "Build and Run Unit Tests" step due to an error when trying to post a comment on an issue. The error message indicates that the request is being made to an invalid URL:

Reproduction steps

  1. merge to main, triggers this action

Error message

RequestError [HttpError]: Not Found
...
url: 'https://api.github.com/repos/AzureAD/microsoft-identity-web/issues//comments',
status: 404,
...
message: 'Not Found',

Id Web logs

No response

Relevant code snippets

n/a

Regression

No response

Expected behavior

Modify the workflow so that the script only runs when a valid issue or pull request number exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant