Bug: Dont show failed pipelines on security dashboard
Summary
We currently show the last pipeline on the security dashboard to provide context for when the vulnerabilities were populated. This is incorrect however when the last pipeline was a failure. We should only show the last successful pipeline
Steps to reproduce
- Trigger failed pipeline
- See last pipeline listed at top of security dashboard
Example Project
See linked issue
What is the current bug behavior?
Most recent pipeline is shown on project security dashboard regardless of status
What is the expected correct behavior?
Most recent successful pipeline should be shown on project security dashboard
Relevant logs and/or screenshots
Note the pipeline ID
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)