actions / actions/toolkit

Consider to expose the `triggering_actor` in context.

Open
#1,143 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the enhancement
based on an recent policy change, the original actor will always return the initial run's actor. so this value will not be changed when the rerun has done by a different user.

Code Snippet
currently, if you want to get the value, you need to process.env.GITHUB_TRIGGERING_ACTOR;
with the help of this library, it can be done the same way as other parameter

Additional information
created a PR https://github.com/actions/toolkit/pull/1142

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 reviewing how existing context parameters are exposed and compare the requested value with process.env.GITHUB_TRIGGERING_ACTOR. The work is complete when triggering_actor is available through this library in the same way as the other parameters; PR 1142 already contains related work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ci-cd
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.