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

Use of non root user, zap options and custom reports dir #49

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

Conversation

juanmatias
Copy link

I was trying to use image ictu/zap2docker-weekly with this action. This because I need to login into the site with user and pwd.
To accomplish this I changed these:

  • the ability to run the container as a non root user
  • the ability of handling zap parameters in a better way
  • the ability to set a different reports base dir

If no parameters added, the defaults are to use root user, to have an empty string as zap parameters and to user current dir as base for reports.

In the readme it is explained and I added a simple example on how to use the after-mentioned image creating and publishing a report as artifact.

@sshniro
Copy link
Member

sshniro commented Apr 30, 2021

Thank you for the contribution, I'll test this over the weekend.

@kingthorin
Copy link
Member

@sshniro any news?

@thc202
Copy link
Member

thc202 commented May 11, 2021

This needs to be rebased to pick the latest changes, also, the commit history should be tidied up (better leave the dist generation in a last commit to make it easier to update).

@thc202
Copy link
Member

thc202 commented May 11, 2021

The changelog should be updated.

Signed-off-by: Juan Matias Kungfoo de la Camara Beovide <juanmatias@gmail.com>

Changed default

Signed-off-by: Juan Matias Kungfoo de la Camara Beovide <juanmatias@gmail.com>

dist prepared

Signed-off-by: Juan Matias Kungfoo de la Camara Beovide <juanmatias@gmail.com>

added zap options as a separate input so we can handle the double quotes around this param

Signed-off-by: Juan Matias Kungfoo de la Camara Beovide <juanmatias@gmail.com>

added option to set reports directory

Signed-off-by: Juan Matias Kungfoo de la Camara Beovide <juanmatias@gmail.com>

added new params to action.yml

Signed-off-by: Juan Matias Kungfoo de la Camara Beovide <juanmatias@gmail.com>

doc improved

Signed-off-by: Juan Matias Kungfoo de la Camara Beovide <juanmatias@gmail.com>

fixed styles

Signed-off-by: Juan Matias Kungfoo de la Camara Beovide <juanmatias@gmail.com>

fixed styles

Signed-off-by: Juan Matias Kungfoo de la Camara Beovide <juanmatias@gmail.com>

dist rebuild
@juanmatias
Copy link
Author

@thc202 sorry for the late reply, the branch was rebased, conflicts solved and all commits merged into one. Please, let me know what else I can do.

@sshniro
Copy link
Member

sshniro commented Sep 7, 2021

Hi @juanmatias , I was not able to run this previously. Unfortunately, I can test this on Friday only. I will test and update the results. Apart from it, the code LGTM!

@psiinon
Copy link
Member

psiinon commented May 23, 2022

For info the root user is no longer used as per #77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants