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.

octokit.authenticate() is deprecated. Use "auth" constructor option instead

See original GitHub issue

Hi, I get following errors during running semantic-release version 15.13.3 in Travis CI. Who can help me to fix it. Thanks in advance.

[2:12:43 PM] [semantic-release] [@semantic-release/github] › ℹ  Verify GitHub authentication
Error: octokit.authenticate() is deprecated. Use "auth" constructor option instead.
    at authenticate (/home/travis/build/bndynet/bbootstrap/node_modules/@octokit/rest/plugins/authentication-deprecated/authenticate.js:4:16)
    at module.exports (/home/travis/build/bndynet/bbootstrap/node_modules/@semantic-release/github/lib/get-client.js:59:10)
    at module.exports (/home/travis/build/bndynet/bbootstrap/node_modules/@semantic-release/github/lib/verify.js:53:20)
    at verifyConditions (/home/travis/build/bndynet/bbootstrap/node_modules/@semantic-release/github/index.js:24:9)
    at validator (/home/travis/build/bndynet/bbootstrap/node_modules/semantic-release/lib/plugins/normalize.js:34:30)
    at pReduce (/home/travis/build/bndynet/bbootstrap/node_modules/semantic-release/lib/plugins/pipeline.js:37:40)
    at Promise.all.then.value (/home/travis/build/bndynet/bbootstrap/node_modules/p-reduce/index.js:16:10)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bndynetcommented, Jan 24, 2019

Got it. Thanks for your help.

0reactions
gr2mcommented, Jan 24, 2019

no need to install it directly, it comes with semantic-release. You’ll get new versions of @semantic-release/github in the v5.x.x range automatically when installing from scratch.

Try to run npm update @semantic-release/github --depth 2. If that does not help, delete node_modules and package-lock.json and run npm install

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to fix octokit.authenticate() is deprecated - Stack Overflow
=> octokit.authenticate() is deprecated. Use "auth" constructor option instead. How can I fix it? my code module.
Read more >
octokit/rest.js - GitHub Pages
Learn more about the optional @octokit/auth-oauth-app authentication strategy ... of methods for the new endpoints instead of using octokit.request() .
Read more >
Top 5 @octokit/auth-token Code Examples | Snyk
[ deprecateAuthBasic, 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead ...
Read more >
@octokit/oauth-app: Docs, Tutorials, Reviews | Openbase
Authenticated instance using the Octokit option passed to the constructor and @octokit/auth-oauth-user as authentication strategy. The octokit instance is ...
Read more >
@octokit/core - npm
Usage. REST API example; GraphQL example. Options; Defaults; Authentication; Logging; Hooks; Plugins; Build your own Octokit with Plugins ...
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