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

Skip FOSSA for forks #52

Merged
merged 2 commits into from
May 17, 2024
Merged

Skip FOSSA for forks #52

merged 2 commits into from
May 17, 2024

Conversation

elaguerta-nr
Copy link
Contributor

@elaguerta-nr elaguerta-nr commented May 17, 2024

PRs from forks do not have access to secrets on the base repository. This checks if the API token is set in the secrets context. If not, this means the PR is from an external repo. In this case the workflow skips the FOSSA job.

Also delete the strategy key which is only used if matrix is defined.

@elaguerta-nr elaguerta-nr merged commit 8ee98d8 into main May 17, 2024
12 checks passed
@elaguerta-nr elaguerta-nr deleted the skip-forks branch May 17, 2024 20:23
@elaguerta-nr elaguerta-nr restored the skip-forks branch May 17, 2024 21:16
@elaguerta-nr elaguerta-nr deleted the skip-forks branch May 19, 2024 07: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.

2 participants