Skip to content

Conversation

@jokasimr
Copy link
Contributor

Related to scipp/scippneutron#476

This change was already merged. But then we learnt some new things about when github secrets are available in workflows. They are not available in fork PRs.

This lets us simplify things by exposing the credentials in all test and docs actions. This removes the limitation that existed before, where only some actions could have access to secrets. Now all tests and docs actions will have access to protected files, unless they run in a fork PR.

More information in this MR to the DMSC docs: https://git.esss.dk/docs/dmsc/-/merge_requests/31/.

I also got some feedback that maybe this stuff should not go here in the generic copier template at all, but rather in the ESS specific copier template. That should also be addressed but I think it's better to do it in a separate PR.

@jokasimr jokasimr requested a review from jl-wynen July 11, 2024 12:53
name: Build documentation
runs-on: 'ubuntu-22.04'
env:
# Security note! The secrets are only added to workflows that run on trusted branches (main). If secrets are accessible in workflows that run on untrusted branches they can be extracted, see https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#exfiltrating-data-from-a-runner.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is no longer correct

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jokasimr jokasimr merged commit 9ffdbb8 into main Jul 11, 2024
@jokasimr jokasimr deleted the protected-files branch July 11, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants