Skip to content

Actions: Add taint summary for suisei-cn/actions-download-file url input#21600

Open
XinyuZhangXvX wants to merge 2 commits intogithub:mainfrom
XinyuZhangXvX:suisei-cn#actions-download-file
Open

Actions: Add taint summary for suisei-cn/actions-download-file url input#21600
XinyuZhangXvX wants to merge 2 commits intogithub:mainfrom
XinyuZhangXvX:suisei-cn#actions-download-file

Conversation

@XinyuZhangXvX
Copy link
Copy Markdown

Summary

  • Add a taint flow summary from input.url to output.filename for suisei-cn/actions-download-file
  • The existing model already tracks input.filenameoutput.filename; this adds coverage for the url input, which can also influence the downloaded filename

Data flow analysis

Reference: https://github.com/suisei-cn/actions-download-file/blob/master/index.js

input.urloutput.filename:

  1. text = core.getInput("url") reads the url input
  2. url is derived from text
  3. When the filename input is not provided, finalFilename = getFilenameFromUrl(url) extracts the filename from the URL path
  4. core.setOutput("filename", finalFilename) writes to the filename output

input.filenameoutput.filename (existing):

  1. filename = core.getInput("filename") reads the filename input
  2. When provided, finalFilename = filename ? String(filename) : getFilenameFromUrl(url) takes the filename value directly
  3. core.setOutput("filename", finalFilename) writes to the filename output

@XinyuZhangXvX XinyuZhangXvX requested a review from a team as a code owner March 27, 2026 22:21
Copilot AI review requested due to automatic review settings March 27, 2026 22:21
@github-actions github-actions bot added the Actions Analysis of GitHub Actions label Mar 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an Actions taint-flow summary to improve CodeQL’s GitHub Actions modeling coverage for suisei-cn/actions-download-file, ensuring the url input is recognized as influencing the filename output (in addition to the already-modeled filename input).

Changes:

  • Add a new actionsSummaryModel taint summary mapping input.urloutput.filename for suisei-cn/actions-download-file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Actions Analysis of GitHub Actions documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants