Hello, @redboyben
Yes, this repo, repo1, has a protected branch. Just to back up a little on how I got here:
I tried to add stop_propagating
, for the first time, to repo1. It has a protected branch, but on the development branch where the stop propagating was added, the checks would fail with this message:
Detailed errors: {This CI run attempted to introduce security marking changes,
but this repository is not running project-scoped CI.
Project-scoped CI can be enabled by repository owners in the "Settings" tab.,
This CI run attempted to introduce security marking changes,
but this repository is not running project-scoped CI
Project-scoped CI can be enabled by repository owners in the "Settings" tab.}
I cannot see a ‘Project-scoped CI’ entry anywhere in the repo settings. The closest I see is Security Approvals, but I cannot enable that (even with a protected branch) when Project Scope requirements are in force apparently:
The test, I created a new, second repo, repo2, in the same project folder, created a protected branch, enabled allow changes in security markings (which is possible in repo2), added stop_propagating on the branch, and the checks passed. With the PR approved by the marking owner we could merge it into the Main branch and everything worked as expected. So it seems to a repo, and not project, based issue.
Unsure what the problem is, I contacted our platform team, who got the following feedback from Palantir:
This is likely to do with PSJ Exemptions.
So if they’ve got Project Scoped Jobs Exemptions, they will not be able to change that setting
They can either setup a new repository, or remove the exemption
But removing the exemption may affect other workflows
We’re aware of the issue with not being able to make API calls when PSJ Exemptions are removed - but what other impact might there be? No-one seems to be able to point me to a list of the changes, or effects. Repo1 builds a number of very widely used datasets within our org, and so this is not a change I’m happy to just roll the dice on - especially if it’s not clear if there’s a trivial roll back or not.
If you think it isn’t to do with PSJ Exemptions, and there’s another setting, that would be great - as removing this to enable stop_propagating
would be a pain for this and other repos we would then be forced to split because we can’t have API calls and changes in security markings in the same repo.
Thanks