Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .dockerignore to target workflow override #43885

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Nov 11, 2024

There is an extra layer of protection that code provided by PR should not be executed in the context of pull_request_target by running the code only inside docker container. However the container is build from local sources, so it could contain other code. We do not allow that by .dockerignore, but the .dockerignore should not be overrideable from the incoming PR.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk potiuk force-pushed the add-dockerignore-to-target-workflow-override branch from 79c02cd to bd52d86 Compare November 11, 2024 14:58
@potiuk potiuk added this to the Airflow 2.10.4 milestone Nov 11, 2024
@gopidesupavan
Copy link
Contributor

cool :)

@potiuk potiuk force-pushed the add-dockerignore-to-target-workflow-override branch from bd52d86 to 19f7776 Compare November 11, 2024 20:59
@potiuk potiuk added backport-to-v2-10-test Mark PR with this label to backport to v2-10-test branch backport-to-v2-9-test Mark PR with this label to backport to v2-9-test branch backport-to-v2-8-test Mark PR with this label to backport to v2-8-test branch backport-to-v2-7-test Mark PR with this label to backport to v2-7-test branch backport-to-v2-6-test Mark PR with this label to backport to v2-6-test branch backport-to-v2-5-test Mark PR with this label to backport to v2-5-test branch backport-to-v2-4-test Mark PR with this label to backport to v2-4-test branch backport-to-v2-3-test Mark PR with this label to backport to v2-3-test branch labels Nov 11, 2024
There is an extra layer of protection that code provided by PR
should not be executed in the context of pull_request_target by
running the code only inside docker container. However the
container is build from local sources, so it could contain other
code. We do not allow that by .dockerignore, but the .dockerignore
should not be overrideable from the incoming PR.
@potiuk potiuk force-pushed the add-dockerignore-to-target-workflow-override branch from 19f7776 to 945725f Compare November 12, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools backport-to-v2-3-test Mark PR with this label to backport to v2-3-test branch backport-to-v2-4-test Mark PR with this label to backport to v2-4-test branch backport-to-v2-5-test Mark PR with this label to backport to v2-5-test branch backport-to-v2-6-test Mark PR with this label to backport to v2-6-test branch backport-to-v2-7-test Mark PR with this label to backport to v2-7-test branch backport-to-v2-8-test Mark PR with this label to backport to v2-8-test branch backport-to-v2-9-test Mark PR with this label to backport to v2-9-test branch backport-to-v2-10-test Mark PR with this label to backport to v2-10-test branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants