Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve reusability of github workflows #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lkdvos
Copy link

@lkdvos lkdvos commented Nov 19, 2024

Hi there!

I am not sure if this is the right place to ask or suggest this, but for the QuantumKitHub organization, I recently started using a workflow based on the SCIML ones in my github actions. Really, I just wanted to have the exact same workflow for the tests.
I was hoping to just use the actions defined here, however that fails because the secrets have been defined implicitly, and the packages use the secrets: inherit setting to pass them on. This however only works for actions that are defined within the same organization.
While I was able to circumvent this issue by simply copy-pasting the actions into my own organization, there might be other people that want to have a similar setup. I did some digging, and from what I understand, if you explicitly declare the secrets that will be passed on, this works across organizations.

This PR features the exact changes I made to enable this. I find it a bit hard to add tests, but I have a PR that now uses this workflow without failing because of the secrets here.

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.

1 participant