-
Notifications
You must be signed in to change notification settings - Fork 27
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
Update directly executed scripts on workflows and scripts #173
Conversation
Signed-off-by: thepetk <thepetk@gmail.com>
@thepetk: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #173 +/- ##
=======================================
Coverage 42.28% 42.28%
=======================================
Files 6 6
Lines 1057 1057
=======================================
Hits 447 447
Misses 567 567
Partials 43 43 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following lines are missing bash
:
- https://github.com/thepetk/devfile-registry-support/blob/21b3c798866953932547c0b60a035e26dde6f325/.ci/run_tests_minikube_linux.sh#L15
- https://github.com/thepetk/devfile-registry-support/blob/21b3c798866953932547c0b60a035e26dde6f325/.ci/run_tests_minikube_linux.sh#L43
- https://github.com/thepetk/devfile-registry-support/blob/21b3c798866953932547c0b60a035e26dde6f325/.ci/Dockerfile#L34
Also, either:
- Add
RUN chmod +x /entrypoint.sh
after https://github.com/thepetk/devfile-registry-support/blob/21b3c798866953932547c0b60a035e26dde6f325/index/server/Dockerfile#L13
or - Add
bash
to https://github.com/thepetk/devfile-registry-support/blob/21b3c798866953932547c0b60a035e26dde6f325/index/server/Dockerfile#L41
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, either:
- Add
RUN chmod +x /entrypoint.sh
after https://github.com/thepetk/devfile-registry-support/blob/21b3c798866953932547c0b60a035e26dde6f325/index/server/Dockerfile#L13
or- Add
bash
to https://github.com/thepetk/devfile-registry-support/blob/21b3c798866953932547c0b60a035e26dde6f325/index/server/Dockerfile#L41My mistake, test is failing because of my last suggestion. Revert this and do the first one.
Could you add RUN chmod +x /entrypoint.sh
after https://github.com/thepetk/devfile-registry-support/blob/2ba2ba41bad7daf4065b0e17418a88119f803a05/index/server/Dockerfile#L13. Still need this because of the assumption that the source entrypoint.sh
will be non-executable.
Signed-off-by: thepetk <thepetk@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: michael-valdron, thepetk The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Please specify the area for this PR
/area ci
What does does this PR do / why we need it:
It ensures that all script executions, inside
.github/workflows
and inside scripts code, are not directly executed and that the script file is passed to the appropriate shell defined by the scripts shebang. For example. in the case of a bash script ./build.sh would become bash ./build.sh.Which issue(s) this PR fixes:
fixes devfile/api#973
Fixes #?
PR acceptance criteria:
Documentation (WIP)
How to test changes / Special notes to the reviewer: