Skip to content

URL in finding does not respect --scm-base-url #190

@rgmz

Description

@rgmz

Describe the bug
When using --scm-base-url, the URL of a finding should reference that value. However, the domain appears to be hard-coded to github.com.

To Reproduce

$ ./poutine analyze_org corp --scm-base-url="https://github.contoso.com/" --token="..."

Rule: If condition always evaluates to true
Severity: error
Description: GitHub Actions expressions used in if condition of jobs or steps
must not contain extra characters or spaces.
Otherwise, the condition is always true.
Documentation: https://boostsecurityio.github.io/poutine/rules/if_always_true

+-----------------------------+----------------------------------+-----------------------------------------------------------------------------------------------+
|         REPOSITORY          |             DETAILS              |                                              URL                                              |
+-----------------------------+----------------------------------+-----------------------------------------------------------------------------------------------+
| corp/repo1                  | .github/workflows/reviewdog.yaml | https://github.com/corp/repo1/tree/HEAD/.github/workflows/reviewdog.yaml#L51                  |
|                             | Job: run                         |                                                                                               |
|                             | Step: 2                          |                                                                                               |
|                             |                                  |                                                                                               |
+-----------------------------+----------------------------------+-----------------------------------------------------------------------------------------------+

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