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

non-EC2 self-hosted runner is not working with aws-assume-role #393

Closed
scott-doyland-burrows opened this issue Feb 23, 2022 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@scott-doyland-burrows
Copy link

In my action this workflow works fine on a GitHub hosted runner ubuntu-latest. However, if I alter it to run on a non-EC2 (an on-prem) Windows runner then it fails with:

Error: Error message: Cannot read property 'message' of undefined

I switched on GitHub Actions debugging and can see lots of errors in the logfiles which I can attach.

name: deploy
permissions:
  id-token: write
  contents: read
on:
  workflow_dispatch:
jobs:
  test:
    runs-on: my-windows-self-hosted-runner
    steps:
      - name: Setup AWS credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          aws-region: eu-west-2
          role-to-assume: ${{ secrets.MY_AWS_ROLE }}
...
...

However, this works fine, so I know my self-hosted runner actually works, so at the moment I have to continue to use AWS access keys for my on-prem runner.

name: deploy
on:
  workflow_dispatch:
env:
  AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_KEY }}
jobs:
  test:
    runs-on: my-windows-self-hosted-runner
    steps:
...
...
@peterwoodworth peterwoodworth added the needs-triage This issue still needs to be triaged label Oct 4, 2022
@peterwoodworth peterwoodworth added duplicate This issue or pull request already exists and removed needs-triage This issue still needs to be triaged labels Feb 21, 2023
@peterwoodworth
Copy link
Contributor

Thanks for reporting this, we are tracking this error message here #395. Please see that issue for further discussion, thanks!

@peterwoodworth peterwoodworth closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2023
@github-actions
Copy link

⚠️Comment Visibility Warning⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants