How do I ignore the error so that it can proceed to next step.
Why I want to ignore :
- This pipeline is for development environment.
- There is few of other issues need to be fix first, so some code need to be deployed first without waiting for security fix.
- The security fix is scheduled to fix at agreed time ( so there is few of other code need to be deployed first) .
My code :
- step:
name: Atlassian Security Scan
clone:
enabled: true
script:
- pipe: atlassian/git-secrets-scan:0.6.0
@Mohamad Bathulah Bin Mohamad Mahir hi. Thanks for your question.
It's a bad practice to ignore security checks.
If you don't need to run step Atlassian Security Scan then you can exclude it from your configuration or make this step trigger manual.
Also you can create two parallel steps NPM Audit and Compress build and then trigger step Atlassian Security Scan
Regards, Igor.
The purpose of it actually not to ignore, but to fix it at a scheduled time, and during that there is few other code need to be deployed so yeah, instead of failing the process, how about give warning.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mohamad Bathulah Bin Mohamad Mahir hi.
Maybe this can help you: https://stackoverflow.com/questions/63204212/how-to-prevent-a-step-failing-in-bitbucket-pipelines
Regards, Igor.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.