question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

upgrade-main fails when creating Pull Request

See original GitHub issue

The upgrade-main workflow is failing for TypeScript project.

The first Upgrade step succeeds but the second Create Pull Request fails.

My .projenrc.js config is using default behavior:

const { typescript } = require("projen");
const project = new typescript.TypeScriptProject({
  defaultReleaseBranch: "main",
  name: "typesafe-dynamodb",

  deps: [
    "aws-sdk",
    "@aws-sdk/client-dynamodb",
    "@aws-sdk/util-dynamodb",
    "@aws-sdk/smithy-client",
    "@aws-sdk/types",
    "@types/aws-lambda",
  ],
  eslintOptions: {
    ignorePatterns: ["**"],
  },
  tsconfig: {
    compilerOptions: {
      lib: ["dom"],
    },
  },
  gitignore: [".DS_Store"],
  releaseToNpm: true,
});

project.synth();

The stdout of “Setup job”:

Current runner version: '[2](https://github.com/sam-goodwin/typesafe-dynamodb/runs/5255578013?check_suite_focus=true#step:1:2).287.1'
Operating System
Virtual Environment
Virtual Environment Provisioner
GITHUB_TOKEN Permissions
  Contents: write
  Metadata: read
  PullRequests: write
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Download action repository 'actions/checkout@v2' (SHA:ec3a7ce113134d7a93b817d10a8272cb[6](https://github.com/sam-goodwin/typesafe-dynamodb/runs/5255578013?check_suite_focus=true#step:1:6)[11](https://github.com/sam-goodwin/typesafe-dynamodb/runs/5255578013?check_suite_focus=true#step:1:11)18579)
Download action repository 'actions/download-artifact@v2' (SHA:f023be2c48cc18debc3bacd34cb396e0295e2869)
Download action repository 'peter-evans/create-pull-request@v3' (SHA:f22a7da129c9015[13](https://github.com/sam-goodwin/typesafe-dynamodb/runs/5255578013?check_suite_focus=true#step:1:13)876a2380e2dae9f8e[14](https://github.com/sam-goodwin/typesafe-dynamodb/runs/5255578013?check_suite_focus=true#step:1:14)5330)

stdout of “Checkout”:

Run actions/checkout@v[2](https://github.com/sam-goodwin/typesafe-dynamodb/runs/5255578013?check_suite_focus=true#step:2:2)
  with:
    ref: main
    repository: sam-goodwin/typesafe-dynamodb
    ssh-strict: true
    persist-credentials: true
    clean: true
    fetch-depth: 1
    lfs: false
    submodules: false
Error: Input required and not supplied: token

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
sam-goodwincommented, Feb 22, 2022

To add to the above, the PAT should only need repo, workflows, and packages permission scopes IIRC.

I can confirm creating a PAT with these scopes and storing as PROJEN_GITHUB_TOKEN fixed the problem.

4reactions
sam-goodwincommented, Feb 22, 2022

Thanks guys! Is this documented anywhere? Also, the error message could be more helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create normal pull request · Issue #2099 · github/hub
I'm trying to create pull request and draft pull requests aren't enabled for my repo. I don't pass -d flag to the hub....
Read more >
Error when sending a pull request to GitHub - Stack Overflow
Now I have been working on a branch in which I created about 5 new Unity scenes and scripts. I tried sending a...
Read more >
Pull Requests Not Reflecting Changes Pushed to Remote ...
Symptoms. Pull requests are not updated when changes are pushed to their branches. Browsing commits on the pull request branches (i.e. ...
Read more >
Memoria tier list
Make sure tList of characters in Danmachi - Memoria Freese Edit Edit source History Talk (0) This is a list of ... In...
Read more >
Fixing branches and pull requests - Code Climate
When your default branch has errored analyses, this can cause branches and pull requests to error, as well. This is because a pull...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found