Skip to content

Allow inline ignore directives to disable rule(s) for a snippet of code #16

@klutchell

Description

@klutchell

Similar to other linters, we would like the option exclude a line of code from having a rule applied if we have deemed them to be not problematic in context.

e.g.

So something like...

run: |
   # octoscan ignore=unsecure-commands
   echo "echo "::set-env name=ENV_NAME::value"

or

# octoscan ignore=unsecure-commands
run: |
   echo "##[set-env name=ENV_NAME;]value"
   # or
   echo "echo "::set-env name=ENV_NAME::value"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions