actions / actions/toolkit

platform is undefined

Open
#1,630 3 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

platform is undefined

To Reproduce
Steps to reproduce the behavior:

  1. Create an index.js script that looks like:
import { platform } from "@actions/core";

console.log("platform is", platform);
  1. Create a new action that calls this script
  2. Invoke the action in another repo
  3. The console prints out "platform is undefined"

Expected behavior
platform should be defined and have arch info as well.

Desktop (please complete the following information):

  • OS: Linux

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

Start by reproducing the import shown in index.js and inspect the @actions/core package entry point and its exported platform surface. Done means platform is defined when the action runs and includes architecture information as described in the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.