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

Can’t configure credentials with GitHub App #1257

Open
1 task
slocoro opened this issue Jan 17, 2025 · 0 comments
Open
1 task

Can’t configure credentials with GitHub App #1257

slocoro opened this issue Jan 17, 2025 · 0 comments
Labels
bug Something isn't working needs-triage This issue still needs to be triaged

Comments

@slocoro
Copy link

slocoro commented Jan 17, 2025

Describe the bug

I have a python script that triggers a Github Actions workflow using a Github App installation. The triggered workflow fails with the following message when trying to configure AWS credentials:

Error: Could not assume role with web identity token file: Unable to validate tags

Weirdly, when I use a PAT instead of the Github App installation I'm able to configure the credentials.

Found this similar looking issue #930 but wasn't able to solve my problem.

Any help will be greatly appreciated :)

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The action is able to configure the credentials without failing.

Current Behavior

The action fails with this error:

Error: Could not assume role with web identity token file: Unable to validate tags

Reproduction Steps

Use a Github App installation to trigger the workflow using Github's create workflow dispatch API

on:
  workflow_dispatch:

permissions:
  contents: read
  id-token: write

jobs:
    steps:
      - name: Configure AWS credentials
        uses: github-actions/configure-aws-credentials@v4
        with:
          aws-region: <my-region>
          role-to-assume: <my-role>
          role-session-name: <my-session-name>

Possible Solution

No response

Additional Information/Context

No response

@slocoro slocoro added bug Something isn't working needs-triage This issue still needs to be triaged labels Jan 17, 2025
@slocoro slocoro changed the title short issue description Can’t configure credentials with GitHub App Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage This issue still needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant