Code Monkey home page Code Monkey logo

actions's People

Contributors

benr avatar chris-rock avatar czunker avatar dependabot[bot] avatar imilchev avatar mati007thm avatar mondoo-tools avatar scottford-io avatar tas50 avatar yvovandoorn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

actions's Issues

tests cannot handle dependabot and fork-PRs

Describe the bug
Tests fail for this dependabot PR: #59

To Reproduce
Steps to reproduce the behavior:

  1. Restart tests in above PR
  2. Note the error

Expected behavior
Tests should run.

Additional context
dependabot by default has no access to secrets.

This results in:
image

There are different ways to solve this. We had the same problem already in the mondoo-operator repo.

Change installation method

image

When using Monddo actions multiple times in a Job, the installation takes most of the time. In the above screenshot, the actual scan took ~1s. But the steps took much longer.

The second step took so long because it updated ~200MB of apt packages. I saw this in another workflow with even worst results when a kernel update was part of the apt packages.

This is the workflow for the screenshot taken above: https://github.com/mondoohq/mondoo-operator/actions/runs/3050036000/jobs/4916723737

Perhaps, the install method can be changed to something like curl'ing the mondoo binary directly. I don't think apt repos and services are needed in a CI/CD context.

Add PR testing

We should be testing each PR against the following uses of the action

  • dockerfile build
  • docker image
  • TF
  • k8s manifest

Actions need an upgrade to v9

Is your feature request related to a problem? Please describe.
Actions are still using cnspec v8.

Describe the solution you'd like
Upgrade to cnspec v9.

Describe alternatives you've considered
Keep v8. Not really an option.

github-org Action Needs a Throttle

Scans of orgs of any reasonable size will fail due to the Github API Rate Limit. There should be a parameter to reduce the scan rate.

Screenshot 2022-12-11 at 7 13 43 PM

A consequence of slowing the scan rate will be excessive number of minutes spent in the action, which might mean the only solutions are:

  1. Reduce the number of scans the cnspec/mondoo client is making
  2. Update docs to recommend using repo scanning with offsets to stretch out the scans over a longer period of time

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.