Skip to content

Support GitLab and Bitbucket repository URLs as targets #47

Closed

Description

@vsn411

Problem: src/secfoo/targets/ only resolves GitHub URLs (github.py). Running --target https://gitlab.com/group/project doesn't work.

Proposal: add GitLab (including self-hosted, via a configurable host) and Bitbucket resolvers modeled on github.py, registered in resolver.py. Private repos should use a token from an env var, and the token must never be logged or written to reports.

Done when: tests in tests/test_targets/ cover URL parsing and clone-arg construction without network access.

Activity

  1. added
    enhancementNew feature or request
    help wantedExtra attention is needed
    hackathonOpen for the Secfoo hackathon
    on Nov 8, 2026
  2. karthickmk2001 commented on Nov 11, 2026

    @karthickmk2001
    Collaborator

    I'd like to take this. Working on it now; a PR will follow.

  3. karthickmk2001 commented on Nov 11, 2026

    @karthickmk2001
    Collaborator

    Correction to my comment above: this was already done by @kushaldave002 in #61 (merged 2026-11-08). It adds GitLab (including self-hosted via SECFOO_GITLAB_HOST) and Bitbucket targets, with tokens from SECFOO_GITLAB_TOKEN / SECFOO_BITBUCKET_TOKEN passed through a temporary askpass helper. The token never appears in argv, errors or .git/config, and tests/test_targets/test_forge.py covers this without network access. The PR didn't link this issue, so it stayed open. Closing as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: mediumLeaderboard: 6 points when the PR closing this is mergedenhancementNew feature or requesthackathonOpen for the Secfoo hackathonhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions