GithubHelp home page GithubHelp logo

bridgecrewio / bridgecrew-action Goto Github PK

View Code? Open in Web Editor NEW
72.0 16.0 30.0 1020 KB

This GitHub Action runs Bridgecrew against infrastructure-as-code, open source packages, container images, and CI/CD configurations to identify misconfigurations, vulnerabilities, and license compliance issues.

Home Page: https://bridgecrew.io/

License: MIT License

static-analysis github actions github-actions bridgecrew marketplace compliance devsecops scanning security

bridgecrew-action's People

Contributors

actions-user avatar danielvincenzi avatar giladmark avatar gruebel avatar guy-suli avatar jameswoolfenden avatar kartikp10 avatar maxamel avatar mikeurbanski1 avatar nimrodkor avatar rajlearner17 avatar rotemavni avatar schosterbarak avatar shunkakinoki avatar tsmithv11 avatar yuvalyacoby 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  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  avatar  avatar  avatar  avatar

bridgecrew-action's Issues

Action passes with errors when soft_fail false

Using this action as configured below, the checks pass even though errors are detected. Soft-fail is not configured, and no rules are skipped.

image

---
  name: Run Bridgecrew
  on:
    push:
      branches-ignore:
        - 'master'
  
  jobs:
    build:
      name: Check chopd3b IaC rules
      runs-on: ubuntu-latest
      steps:
        # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
        - name: Checkout codebase
          uses: actions/checkout@v2
        
        - name: Run Bridgecrew
          id: Bridgecrew
          uses: bridgecrewio/bridgecrew-action@master
          with:
            api-key: ${{ secrets.BRIDGECREW_API_KEY }}

Option to specify check severity

There is an option to check individual checks via their identifiers.
It would also be good if you could select the checks by their severity.

For example only "--check HIGH" as in https://github.com/bridgecrewio/checkov with "checkov -d . --check MEDIUM".

My current config is:

- name: Run Checkov action
        id: checkov
        uses: bridgecrewio/checkov-action@master
        with:
          directory: .
          quiet: true 
          soft_fail: false 
          framework: all
          output_format: sarif 
          download_external_modules: true
          log_level: WARNING 
          check: LOW # Results in - no checks applied

Warning: No files were found with the provided path: results.sarif. No artifacts will be uploaded.

Just a heads up - lots of folks are experiencing failures (us included) when trying to use the github action for bridgecrew. https://github.com/mikeurbanski1/azure-tf/actions/runs/661611939 as an example.

This is an output from one of my repos:

Run actions/upload-artifact@v2
  with:
    name: SARIF results
    path: results.sarif
    if-no-files-found: warn
Warning: No files were found with the provided path: results.sarif. No artifacts will be uploaded.
1s
Run github/codeql-action/upload-sarif@v1
Error: Path does not exist: results.sarif
Error: Path does not exist: results.sarif
    at getSarifFilePaths (/tmp/github-runner/_actions/github/codeql-action/v1/lib/upload-lib.js:144:15)
    at Object.uploadFromActions (/tmp/github-runner/_actions/github/codeql-action/v1/lib/upload-lib.js:132:30)
    at run (/tmp/github-runner/_actions/github/codeql-action/v1/lib/upload-sarif-action.js:49:46)
    at async runWrapper (/tmp/github-runner/_actions/github/codeql-action/v1/lib/upload-sarif-action.js:63:9)

I used the file from here

Request to add skip_suppressions parameter

Though --skip-suppressions flag can be used via CLI but this feature is not available in bridgecrew-action. This may be a vulnerability issue as any developer can use checkov suppression comment and skip the policy check.

`download_external_modules` and `log_level` are not allowable inputs

The documentation suggests I can increase logging level by setting log_level: DEBUG, but when I do so, I get informed that:

Warning: Unexpected input(s) 'log_level', valid inputs are ['entryPoint', 'args', 'directory', 'check', 'skip_check', 'quiet', 'api-key', 'soft_fail', 'external_checks_dir', 'output_format']

I believe this is also a problem with download_external_modules.

unable to download the modules for scanning purpose on bridgecrew

Hi Team,

Hope you are doing well.

we are using bridgecrew scanning for scanning our infrastructure service due to some reason we are unable to download the module due to which the scanning is incomplete please help in fixing the same

Here is the error for the same

2023-02-07 06:17:53,753 [MainThread ] [WARNI] Failed to download module from the location

Bridgecrew Action - Docker Pull Rate Limit

We are seeing

Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: docker.com/increase-rate-limit
  Warning: Docker pull failed with exit code 1, back off 3.146 seconds before retry.

How do we set the Action to only pull from an internal repo?

We've had to fully pull Bridgecrew from our actions until then.

Request to add parameter to enrich output

Currently we can enable a terraform_plan scan using bridgecrew-action by including terraform plan output that's been exported as a JSON file in the directory being scanned. It would be great if we could enrich this output with the appropriate file path, line numbers, and codeblock of the resource(s) like we do with checkov cli using the --repo-root-for-plan-enrichment parameter. Can we get this added as a parameter to this action?

documentation flags

The instructions in the README
state that 'soft-fail', 'skip-check', 'external-checks-dir' `re parameters. They are not.

The correct values for the gha action:

valid inputs are ['entryPoint', 'args', 'directory', 'check', 'skip_check', 'quiet', 'api-key', 'soft_fail', 'external_checks_dir', 'output_format']

cli is passing master branch

I noticed that the action is specifying branch as master, gh now uses 'main' as the default branch with new repos
is there away to specify branch as param in action?

bridgecrew --bc-api-key XXXXXXXXX-XXX-XXXXX --branch master --repo-id

Authentication error with latest changes

What was working previously, I'm now getting the following error:

Error: -04 16:04:54,526 [MainThread  ] [ERROR]  Received an error response during authentication
Error: -04 16:04:54,527 [MainThread  ] [ERROR]  An error occurred setting up the Bridgecrew platform integration. Please check your API token and try again.
Error: -04 16:04:54,527 [MainThread  ] [ERROR]  Please try setting the environment variable LOG_LEVEL=DEBUG and re-running the command, and provide the output to support

Can you please create releases for this action so that we can pin to specific versions in our code?

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.