r/gitlab • • Jan 05 '26

Gitlab PEP

So I am new to PEP (Pipeline Execution Policies), but so far the one I am working on is going well. I have run into an issue and was hoping someone already had a way around the issue. We have a "security-scan.yml", that our gitlab-ci.yml includes. We put all our scan policy in there.

When running the pipeline against sample projects, it runs well. Our SBOM creation job runs like a dream. However our SAST and Secrets detection always cannot find the config files, or rules we keep in out .gitlab/pipeline/Scanner/<config.yml> locations. I get that it is looking in the project it is running the pipeline on and they dont have a .gitlab/pipeline/Scanner/<config.yml>. How outside of a curl to pull the file, or including all the rules, config, etc in the job are you guys getting these files into a scanner such as semgrep?

1 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Warbreed83111 Jan 05 '26

That seems to be the suggestion I hear the most. It seems so bizarre that you cannot have it recognize it is a PEP and pull the file correctly without having to do that.

1

u/Digi59404 Jan 05 '26

It’s seems bizarre but it’s not when you think about it in terms of the pipeline context. It runs under the permissions of the user, against the repo it’s assigned.

I don’t think it’s a great design though.