Giter Site home page Giter Site logo

action-api-scan's Introduction

License GitHub release Java CI CII Best Practices Github Releases javadoc CodeQL Quality Gate Status Open Source Helpers Twitter Follow

Integration Tests Docker Live Release

The Zed Attack Proxy (ZAP) is one of the world’s most popular free security tools and is actively maintained by a dedicated international team of volunteers. It can help you automatically find security vulnerabilities in your web applications while you are developing and testing your applications. It's also a great tool for experienced pentesters to use for manual security testing.

For more details about ZAP see the new ZAP website at zaproxy.org

action-api-scan's People

Contributors

ben741 avatar dependabot[bot] avatar kingthorin avatar nguyennhatthuan avatar psiinon avatar ricekot avatar thc202 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

action-api-scan's Issues

Thanks!

You guys are awesome.

What a great tool to automate API Scanning!

-r option fails with an permission issue

Describe the Issue
We recently updated our action from 0.1.0 to 0.3.1 and it stopped working.

Expected Behaviour
If we want to create the report_html.html file with a different name and therefore supply the option -r mySpecDefinition.html we would expect to create the report from the scan with the provided filename.

Steps to reproduce
given this step:

      - name: ZAP API Scan
        uses: zaproxy/[email protected]
        with:
          target: 'https://www.myapi.de/mydocs/mySpecDefinition.json'
          cmd_options: '-r mySpecDefinition.html'

it fails with this error

ERROR [Errno 13] Permission denied: '/zap/wrk/mySpecDefinition.html'
2023-07-14 04:45:17,559 I/O error: [Errno 13] Permission denied: '/zap/wrk/mySpecDefinition.html'
Traceback (most recent call last):
  File "/zap/zap-api-scan.py", line 580, in main
    write_report(os.path.join(base_dir, report_html), zap.core.htmlreport())
  File "/zap/zap_common.py", line 564, in write_report
    with open(file_path, mode='wb') as f:
PermissionError: [Errno 13] Permission denied: '/zap/wrk/mySpecDefinition.html'

Current Workaround
as a workaround we rename the file in a step but we would expect the action to do this out of the box by providing the -r option

      - name: rename file
        run: mv ./report_html.html ./mySpecDefinition.html

New version with node 16

Hi,

Can a new version be published with node 16 please? The current one is complaining about outdated node version.

Cheers

Release new version

Hey guys, when will you add the tag to the latest commit? I would like to get rid of node version 12 but v0.2.0 is not include the commit of upgrading node version.

failed to scan ZAP API

I am using ZAP api scan to scan java applications , here am using my own docker hub
getting below error
starting the program

/usr/bin/touch report_json.json report_md.md report_html.html
/usr/bin/chmod a+w report_json.json report_md.md report_html.html
/usr/bin/docker pull /my-java-app:latest -q
docker.io/
/my-java-app:latest
/usr/bin/docker run -v /_work/test-insignia/test-insignia:/zap/wrk/:rw --network=host -e ZAP_AUTH_HEADER -e ZAP_AUTH_HEADER_VALUE -e ZAP_AUTH_HEADER_SITE -t ***/my-java-app:latest zap-api-scan.py -t My own url here/ -f openapi -J report_json.json -w report_md.md -r report_html.html
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "zap-api-scan.py": executable file not found in $PATH: unknown.
time="2023-08-17T17:17:35+05:30" level=error msg="error waiting for container: context canceled"
Scanning process completed, starting to analyze the results!
Failed to locate the json report generated by ZAP Scan!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.