Giter VIP home page Giter VIP logo

Comments (8)

noamd-legit avatar noamd-legit commented on June 23, 2024 2

Sorry, holidays season :) I will publish a fix today

from legitify.

mawl avatar mawl commented on June 23, 2024

Should have been fixed with #243

from legitify.

mawl avatar mawl commented on June 23, 2024

P.S. permissions_log.json is empty.

from legitify.

mawl avatar mawl commented on June 23, 2024

After moving project back to group/project all policies have been found, so it is nothing concerning different permissions.

Legitify Findings Summary:
+---+------------+--------------------------------+----------+--------+--------+---------+
| # | Namespace  |             Policy             | Severity | Passed | Failed | Skipped |
+---+------------+--------------------------------+----------+--------+--------+---------+
| 1 | repository | Default Branch Should Be       | MEDIUM   | 0      | 1      | 0       |
|    |            | Protected                      |          |        |        |         |
+---+------------+--------------------------------+----------+--------+--------+---------+
| 2 | repository | Default Branch Should Not      | MEDIUM   | 0      | 1      | 0       |
|    |            | Allow Force Pushes             |          |        |        |         |
+---+------------+--------------------------------+----------+--------+--------+---------+
| 3 | repository | Project Should Require All     | MEDIUM   | 0      | 1      | 0       |
|    |            | Pipelines to Succeed           |          |        |        |         |
+---+------------+--------------------------------+----------+--------+--------+---------+

from legitify.

noamd-legit avatar noamd-legit commented on June 23, 2024

All policies are shown and group gets analyzed, too.
Im not sure I understand this, when using the --repo flag it analyzes only the specific repository and only repository-related policies(namespace)

Could you attach the CLI command you're using? I can't replicate this behavior locally (you can send privately if you prefer).

from legitify.

mawl avatar mawl commented on June 23, 2024

@noamd-legit:

The command I use, is:

    legitify analyze \
    --scm gitlab \
    --failed-only \
    --ignore-policies-file ${LEGITIFY_IGNORE_POLICIES_FILE} \
    --output-format json \
    --error-file analyze.error.log \
    --output-file ${LEGITIFY_JSON_OUTPUT} \
   --repo "${CI_PROJECT_PATH}"

The project settings for both analysis are the same, I moved the project into a subgroup to test the new feature - and I wonder why policies are missing and the error couldn't find group group/subgroup appears in the log.

I use a policiesignore file to activate only some policies which are:

# missing_default_branch_protection
# missing_default_branch_protection_force_push
# project_not_maintained
# requires_status_checks

If you need more input please let me know.

from legitify.

mawl avatar mawl commented on June 23, 2024

@noamd-legit: looking forward to your answer :)

from legitify.

mawl avatar mawl commented on June 23, 2024

Thanks for the fix. It works :)

from legitify.

Related Issues (20)

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.