Coder Social home page Coder Social logo

simonkowallik / irulescan-action Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 7 KB

:shield: irulescan-action is a static security analyzer for iRules for use with Github Actions

License: MIT License

Dockerfile 10.54% Shell 84.33% Tcl 5.13%
ci cicd f5 f5-bigip f5networks irules security devsecops security-tools

irulescan-action's Introduction

irulescan-action

Functional Tests

This action uses irulescan to scan iRules within your repository for security issues during execution of a GitHub Actions Workflow.

This action scans all irules in the repository and returns the result of findings in YAML format. The workflow step will not fail by default, hence the execution of the workflow job succeeds even when security issues are found. The goal is to provide the findings to let you choose what to do with them.

irulescan-action will scan files with .tcl and .irule extensions only.

Usage

In the simplest form the below workflow scans iRules in the whole repository. Please take a look at the provided examples for more details.

jobs:
  irulescan-action:
    runs-on: ubuntu-latest
    name: "Workflow"
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Run irulescan-action
        uses: simonkowallik/irulescan-action@main

Some behavior can be modified, see inputs below.

inputs

All inputs are optional.

  • scandir: Use scandir to scan a custom subdirectory within the repository.

  • expected_results_file: Specify a relative path to a YAML file with expected results. If the actual result of irulescan does not match the expected result, a diff will be returned and the job step will fail.

  • cmd: Specify a custom command to execute within the container.

outputs

  • result: result will be populated with the output results. It can be accessed using ${{ steps.<iruescan-action-step-id>.outputs.result }}.

Examples

The example/ folder contains example iRules and a YAML file with expected results.

.github/workflows contains several example workflows, click on the icons below to inspect the workflow:

Demo: Successful

Demo: Failing workflow step

Demo: Custom CMD

Demo: Advanced Usage

irulescan-action's People

Contributors

simonkowallik avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.