Hello Community!
I want to list all the files in repository usin API 2.0
the goal is to review extensions and alert users if they are pushing unauthorized data
I need to monitor the file the user and the repository
Thanks
Hello @BEN MOUSSA Anis-ext
Welcome to the Atlassian Community.
In Bitbucket Cloud, you may try this API to Get file or directory contents in the repository.
Let us know if you have any queries.
Kind regards,
Karthick S
Hi @BEN MOUSSA Anis-ext
Thank you for your question!
It could be your case to use Bitbucket Pipe: Git secrets scan: Scan your files for hardcoded sensitive data and create a security report.
By default, the pipe will scan your files for hardcoded AWS credentials and create a security report with annotations for each found credential.If a value for CUSTOM_PATTERN is provided, it will scan for and AWS credentials and CUSTOM_PATTERN.If the CUSTOM_PATTERN is not provided, it will scan for AWS credentials only.
By default, the pipe will scan your files for hardcoded AWS credentials and create a security report with annotations for each found credential.
If a value for CUSTOM_PATTERN is provided, it will scan for and AWS credentials and CUSTOM_PATTERN.
CUSTOM_PATTERN
If the CUSTOM_PATTERN is not provided, it will scan for AWS credentials only.
In the repository turn on Bitbucket Pipelines and add the pipe:
Run a scan for AWS credentials:
script: - pipe: atlassian/git-secrets-scan:0.6.0
or
Scan custom secrets using a pattern that matchesBitly's secret key file (^R_[0-9a-f]{32}$):
^R_[0-9a-f]{32}$
script: - pipe: atlassian/git-secrets-scan:0.6.0 variables: CUSTOM_PATTERN: '^R_[0-9a-f]{32}$'
Best regards,Oleksandr Kyrdan
It looks like you're new here. Sign in or register to get started.