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

Warning: "Unexpected input 'github_token'" #53

Closed
k001 opened this issue May 20, 2020 · 2 comments
Closed

Warning: "Unexpected input 'github_token'" #53

k001 opened this issue May 20, 2020 · 2 comments

Comments

@k001
Copy link

k001 commented May 20, 2020

I'm using following the README.md example for javascript-example-eslint-and-prettier, but the workflow shows unexpected input, checking the inputs that's correct that input is not expected. Also it's trying to push changes to .github folder but not sure why. It's a private repo

Here is the error:

! [remote rejected] master -> master (refusing to allow a GitHub App to create or update workflow `.github/workflows/Lint.yml` without `workflows` permission)

This is my lint.yml file:

name: Lint
on: [push, pull_request]
jobs:
  node-lint-tests:
    runs-on: ${{ matrix.os }}
    if: "!contains(github.event.head_commit.message, 'ci skip')"

    strategy:
      matrix:
        os: [ 'ubuntu-latest']
        node: [10, 12]

    steps:
      - name: Check out Git repository
        uses: actions/checkout@v2

      - name: Set up Node.js
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}

      - name: install node_modules
        run: yarn install --frozen-lockfile

      - name: Run linters
        uses: samuelmeuli/lint-action@v1
        with:
          github_token: ${{ secrets.github_token }}
          eslint: true
          prettier: true
          auto_fix: true
@JohnVonNeumann
Copy link

I've just gotten the same thing pop up, I was testing this last week and wasn't hitting it, all of a sudden it has appeared.

@samuelmeuli samuelmeuli changed the title ##[warning]Unexpected input 'github_token' Error: "Unexpected input 'github_token'" May 25, 2020
@samuelmeuli samuelmeuli changed the title Error: "Unexpected input 'github_token'" Warning: "Unexpected input 'github_token'" May 25, 2020
@camjac251
Copy link

camjac251 commented Jun 30, 2020

I'm getting mixed messages in trying to run this. I saw this one but then the next time trying to run it gave a "refusing to allow a GitHub App to create or update workflow" error.

Changes found with Git
Committing changes
Pushing changes with Git
remote: fatal error in commit_refs
To https://github.com/camjac251/project
 ! [remote rejected] actions-test -> actions-test (failure)
error: failed to push some refs to 'https://github.com/camjac251/project'
Error: Command failed: git push
remote: fatal error in commit_refs
To https://github.com/camjac251/project
 ! [remote rejected] actions-test -> actions-test (failure)
error: failed to push some refs to 'https://github.com/camjac251/project'

    at checkExecSyncError (child_process.js:621:11)
    at execSync (child_process.js:657:15)
    at run (/home/runner/work/_actions/samuelmeuli/lint-action/v1/src/utils/action.js:69:18)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  status: 1,
  signal: null,
  output: [
    null,
    '',
    'To https://github.com/camjac251/project\n' +
      ' ! [remote rejected] production -> production (refusing to allow a GitHub App to create or update workflow `.github/workflows/lint.yml` without `workflows` permission)\n' +
      "error: failed to push some refs to 'https://github.com/camjac251/project'\n"
  ],
  pid: 3172,
  stdout: '',
  stderr: 'To https://github.com/camjac251/project\n' +
    ' ! [remote rejected] production -> production (refusing to allow a GitHub App to create or update workflow `.github/workflows/lint.yml` without `workflows` permission)\n' +
    "error: failed to push some refs to 'https://github.com/camjac251/project'\n"
}
/home/runner/work/_actions/samuelmeuli/lint-action/v1/src/index.js:13
	throw new Error(`Exiting because of unhandled promise rejection`);
	^

Error: Exiting because of unhandled promise rejection
    at process.<anonymous> (/home/runner/work/_actions/samuelmeuli/lint-action/v1/src/index.js:13:8)
    at process.emit (events.js:210:5)
    at processPromiseRejections (internal/process/promises.js:201:33)
    at processTicksAndRejections (internal/process/task_queues.js:94:32)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  status: 1,
  signal: null,
  output: [
    null,
    '',
    'To https://github.com/camjac251/project\n' +
      ' ! [remote rejected] production -> production (refusing to allow a GitHub App to create or update workflow `.github/workflows/lint.yml` without `workflows` permission)\n' +
      "error: failed to push some refs to 'https://github.com/camjac251/project'\n"
  ],
  pid: 3172,
  stdout: '',
  stderr: 'To https://github.com/camjac251/project\n' +
    ' ! [remote rejected] production -> production (refusing to allow a GitHub App to create or update workflow `.github/workflows/lint.yml` without `workflows` permission)\n' +
    "error: failed to push some refs to 'https://github.com/camjac251/project'\n"
}
/home/runner/work/_actions/samuelmeuli/lint-action/v1/src/index.js:13
	throw new Error(`Exiting because of unhandled promise rejection`);
	^

Error: Exiting because of unhandled promise rejection
    at process.<anonymous> (/home/runner/work/_actions/samuelmeuli/lint-action/v1/src/index.js:13:8)
    at process.emit (events.js:210:5)
    at processPromiseRejections (internal/process/promises.js:201:33)
    at processTicksAndRejections (internal/process/task_queues.js:94:32)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants