I can not find any documentation regarding files/folders exclusion from git-secrets-scan pipe in bitbuckets pipelines
Hi @Abdelmassih Abdelmassih. Please, check the docs.
You should add paths under [allowlist] section in gitleaks.toml file.
Example:
# This is a global allowlist which has a higher order of precedence than rule-specific allowlists. # If a commit listed in the `commits` field below is encountered then that commit will be skipped and no # secrets will be detected for said commit. The same logic applies for regexes and paths. [allowlist] description = "global allow list" commits = [ "commit-A", "commit-B", "commit-C"] paths = [ '''gitleaks\.toml''', '''(.*?)(jpg|gif|doc)''' ]
Regards, Igor
Hello @Abdelmassih Abdelmassih
Based on my experience, the git-secrets-scan pipe in Bitbucket Pipelines currently doesn’t seem to have explicit documentation or built-in options for excluding specific files or folders.
However, you can achieve this indirectly by modifying your pipeline configuration to exclude certain paths from being scanned. This could involve creating a .gitignore-like file or customizing the script that invokes the pipe to filter files.
Opening a ticket with Atlassian support at https://support.atlassian.com/contact/#/ may provide clarity or a workaround.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.