Skip to content

[v2-9-stable] Add .dockerignore to target workflow override (#43885) - #44105

Merged
potiuk merged 1 commit into
apache:v2-9-stablefrom
potiuk:backport-5d6b836-v2-9-stable
Nov 17, 2024
Merged

[v2-9-stable] Add .dockerignore to target workflow override (#43885)#44105
potiuk merged 1 commit into
apache:v2-9-stablefrom
potiuk:backport-5d6b836-v2-9-stable

Conversation

@potiuk

@potiuk potiuk commented Nov 17, 2024

Copy link
Copy Markdown
Member

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.
(cherry picked from commit 5d6b836)


^ 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.

…3885)

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.
(cherry picked from commit 5d6b836)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@potiuk
potiuk merged commit c92929b into apache:v2-9-stable Nov 17, 2024
@potiuk
potiuk deleted the backport-5d6b836-v2-9-stable branch November 17, 2024 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants