GithubHelp home page GithubHelp logo

Comments (4)

franky47 avatar franky47 commented on May 21, 2024 1

Indeed, it seems they fixed the issue, but partially. When invoking Node directly from a run clause, the environment is injectable, but not when running an action from a repository. See POC run for reference.

So this action is no longer vulnerable to injection, good to know. I will update my article accordingly.

from build-push-action.

crazy-max avatar crazy-max commented on May 21, 2024

@franky47 That's wrong each step in a job workflow is isolated in his own node process. Do you have a POC?

from build-push-action.

franky47 avatar franky47 commented on May 21, 2024

Steps may be isolated, but environment variables can be shared between steps within a job. My article (linked above) has a detailed explanation of the "issue" (which is considered a feature by GitHub). Unless something changed since I wrote the article, it is possible to inject arguments from a previous action to control another.

from build-push-action.

crazy-max avatar crazy-max commented on May 21, 2024

@franky47 In your article you said process.env.INPUT_FOO === 'bar' will be expanded to the whole job. But it's not. Let me know when you've got time to create a POC about this. See also https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#env

from build-push-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.