FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clearly document passing inputs to the `script` by joshmgross · Pull Request #603 · actions/github-script · GitHub

Clearly document passing inputs to the script - #603

Merged
joshmgross merged 2 commits into
mainfrom
joshmgross/document-inputs
May 14, 2025
Merged

Clearly document passing inputs to the script#603
joshmgross merged 2 commits into
mainfrom
joshmgross/document-inputs

Conversation

Copy link
Copy Markdown
Contributor

A lot of questions we get around SyntaxErrors are due to misusing Actions Expressions with the script - https://github.com/actions/github-script/issues?q=is:issue%20state:closed%20SyntaxError

This was documented in #126, but I believe it's worth clearly highlighting the security risks of using Actions expressions within the script and moving it up in the README as it's a common scenario.

Copilot AI review requested due to automatic review settings May 13, 2025 15:01
joshmgross requested a review from a team as a code owner May 13, 2025 15:01
joshmgross temporarily deployed to debug-integration-test May 13, 2025 15:01 — with GitHub Actions Inactive

github-actions Bot commented May 13, 2025
edited
Loading

Copy link
Copy Markdown

Hello from actions/github-script! (23886ca)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull Request Overview

This PR clarifies how to safely pass inputs into the script step by using environment variables instead of inline Actions expressions, and highlights the security risks of script injection.

  • Adds a new Passing inputs to the script section with example usage
  • Removes the outdated Use env as input snippet further down in the README

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md
joshmgross temporarily deployed to debug-integration-test May 13, 2025 15:05 — with GitHub Actions Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL