Comments (4)
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.
@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.
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.
@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)
- Build/Push fails if the tag name matches an existing tag in the registry HOT 5
- The sha256 of registry cache config are mismatched for rerun multi-stage config. HOT 1
- buildx failed with: ERROR: invalid key-value pair "": empty key HOT 2
- Tarball output throws `ResourceExhausted` error HOT 4
- GIT context ignores changes in build secrets and use GHA build cache from other build HOT 8
- When using a matrix for multi-platform builds images get erased HOT 2
- Docker Hub login succeeds but push does not HOT 1
- Local cache remains empty despite cache-to and cache-from configuration HOT 4
- Support push and load being set together HOT 5
- header key "followpaths" contains value with non-printable ASCII characters HOT 9
- Request for new release HOT 1
- Action hangs after build HOT 3
- net/http: TLS handshake timeout HOT 1
- GHA/Local cache doesn't work HOT 3
- Docker build hangs for `linux/arm/v7` HOT 1
- Ability to use multiple names when using output `type=image` HOT 4
- Caching Multiple Container Builds HOT 1
- Error: buildx failed with: ERROR: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory HOT 2
- `fatal: Not a valid object name` during `load git source` triggered by `on: push:` (with self-hosted runner) HOT 2
- Not all files present in final build when using `context` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build-push-action.