Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inadvertantly fetching seemingly all repo's within a private hosted gitlab #988

Open
bigdave777 opened this issue Feb 11, 2025 · 0 comments

Comments

@bigdave777
Copy link

bigdave777 commented Feb 11, 2025

I'm trying to set up ci pipeline exporter and the PAT I'm using appears to be granting access to all repo's within my org's gitlab.

I have the following config

config:
  gitlab:
    url: https://my.gitlab.com
  project_defaults:
    pull:
      refs:
        branches:
          enabled: true
        tags:
          enabled: true
        merge_requests:
          enabled: true
  pull:
    projects_from_wildcards:
      on_init: false
      scheduled: false
  projects:
    - name: foo/bar
    - name: bar/baz

In the logs I then see lines such as

"msg":"pulling ref metrics","project-name":"something/i/dont/want/to/access

Is my understanding of the projects set up incorrect?

I'd previously trialled with

config:
  wildcards:
  - {} 

and that had also fetched all projects. This seems to be a limitation with the group level PAT's however I thought providing individual projects would resolve this.

Any guidance would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant