Giter Site home page Giter Site logo

actions-vaddy's Introduction

actions-vaddy

GitHub Action to run vulnerability scan with VAddy.

test codecov CodeFactor Maintainability

Setting up this action

V2 project

name: test

on:
  schedule:
    - cron:  '0 3 * * *'

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: higebu/actions-vaddy@master
      with:
        user: ${{ secrets.VADDY_USER }}
        auth_key: ${{ secrets.VADDY_TOKEN }}
        project_id: ${{ secrets.VADDY_PROJECT_ID }}
        # crawl_id: ${{ secrets.VADDY_CRAWL_ID }}

V1 project

If you want to scan the server runs on GitHub Actions, your project should be V1(VAddy PrivateNet) project. See VAddy PrivateNet Quickstart Guide

name: test

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: run server
      run: ./run.sh &
      env:
        VADDY_VERIFICATION_CODE: ${{ secrets.VADDY_VERIFICATION_CODE }}
        LISTEN_ADDR: ${{ secrets.VADDY_LOCAL_IP }}:${{ secrets.VADDY_LOCAL_PORT }}
    - uses: higebu/actions-vaddy@master
      with:
        user: ${{ secrets.VADDY_USER }}
        auth_key: ${{ secrets.VADDY_TOKEN }}
        fqdn: ${{ secrets.VADDY_FQDN }}
        verification_code: ${{ secrets.VADDY_VERIFICATION_CODE }}
        private_key: ${{ secrets.VADDY_PRIVATE_KEY }}
        local_ip: ${{ secrets.VADDY_LOCAL_IP }}
        local_port: ${{ secrets.VADDY_LOCAL_PORT }}
        # crawl_id: ${{ secrets.VADDY_CRAWL_ID }}

For more details, see Example and Workflow syntax for GitHub Actions.

Configurations

input description
user Vaddy User ID from https://console.vaddy.net/user/webapi.
auth_key Vaddy API Auth Key https://console.vaddy.net/user/webapi.
project_id A project ID from Server page. Required for V2 project.
crawl_id A crawl ID. Optional.
fqdn A FQDN of the server. Required for V1 project
verification_code A verification code for the FQDN. Required for V1 project.
private_key A ssh private key. Optional for V1 project. You can get the key from privatenet/vaddy/ssh/id_rsa in go-vaddy. After running vaddy_privatenet.sh connect.
local_ip A local IP address for the server. Required for V1 project
local_port A local port for the server. Required for V1 project
output description
scan_finished true if the scan was finished, false otherwise.
project_id Project ID of the scan.
scan_id Scan ID of the scan.
scan_count Scan count of the scan.
alert_count Alert count of the scan.
scan_result_url Scan result URL of the scan.
complete Complete of the scan.
crawl_id Crawl ID of the scan.
crawl_label Crawl label of the scan.
scan_list Scan list of the scan.

License

MIT

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.