actions / actions/toolkit

Cannot use `@actions/github` and `@actions/artifact` together

Open
#1,727 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Due to differing versions of the Octokit modules, you cannot use these packages together

See https://github.com/octokit/plugin-rest-endpoint-methods.js/issues/737

To Reproduce
Steps to reproduce the behavior:

  1. Install @actions/github and @actions/artifact modules
  2. Create a TypeScript source file that uses both packages
  3. Try to compile the TypeScript source file
  4. See error

Expected behavior
For the used versions of Octokit to be in sync and the packages usable together

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

/cc @austenstone

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the TypeScript compilation error using @actions/github and @actions/artifact as described in the issue, then review how each package resolves its Octokit modules. Use the linked Octokit issue for context; done means both packages compile together with compatible Octokit versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.