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

Did not find expected key [GITHUB_TOKEN] #146

Closed
princebansal opened this issue Sep 26, 2019 · 2 comments
Closed

Did not find expected key [GITHUB_TOKEN] #146

princebansal opened this issue Sep 26, 2019 · 2 comments

Comments

@princebansal
Copy link

princebansal commented Sep 26, 2019

Hey.
I added the greetings.yaml starter workflow in my repository. The workflow looks like this:


on: [pull_request, issues]

jobs:
  greeting:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/first-interaction@v1
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        issue-message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
        pr-message: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'

But everytime it runs, it throws error:

yaml: line 11: did not find expected key

I assume it is not able to find GITHUB_TOKEN. I read this here:

The GITHUB_TOKEN secret is a GitHub App installation token scoped to the repository that contains your workflow. GitHub creates the GITHUB_TOKEN secret for you by default, but you must include it in your workflow file in order for actions to use it. You can use the GITHUB_TOKEN secret to make authenticated GitHub API calls on behalf of an action.

Please help on this

@peaceiris
Copy link

@andymckay
Copy link
Contributor

Thanks @princebansal I think this is a duplicate of the issue that @peaceiris mentioned, so I'm going to close as being a duplicate of that issue. If that's not the case, my apologies. Since there's a dedicated repository for that project, if you could open issues on that repository it would be appreciated.

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

No branches or pull requests

3 participants