Skip to content

Add specs for job token scope blocking artifacts download

What does this MR do and why?

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/336105

This MR only adds some specs that ensures that the job token scope blocks unauthorized artifacts downloads. It was originally believed that it wasn't working correctly during the initial implementation and tests.

The specs added are around the expected behaviour:

Given that project B is not in the project A's job token scope, the artifact download should not be allowed. It should be allowed only if project B is added to A's job token scope.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Fabio Pitino

Merge request reports

Loading