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

Fix fails on pull-requests from forks #485

Merged
merged 1 commit into from
Feb 23, 2023
Merged

Conversation

agateau-gg
Copy link
Collaborator

@agateau-gg agateau-gg commented Feb 22, 2023

Do not run steps which require the GITGUARDIAN_API_KEY variable. These steps always fail because the variable is not available for pull-requests coming from forks.

Fixes #374

Testing

This PR merges a branch from the GitGuardian/ggshield repository, so all steps should run.

PR #484 merges the same branch, but from my fork of the repository, and this time not all steps run.
Update: looks like GitHub is confused and now shows the same results as for this PR. You can look at this previous run to see skipped jobs (the GitHub action test jobs) and steps (the functional tests inside the build jobs). There is also this run of the performance benchmark which is skipped too.

@agateau-gg agateau-gg changed the title chore: fix fails on pull-requests from forks Fix fails on pull-requests from forks Feb 22, 2023
@agateau-gg agateau-gg marked this pull request as ready for review February 22, 2023 15:05
Copy link
Collaborator

@pierrelalanne pierrelalanne left a comment

Choose a reason for hiding this comment

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

Looks good to me !
Interestingly enough, GitHub seems to group the checks from both PRs here and we can see that it behaves as expected.

.github/workflows/main.yml Outdated Show resolved Hide resolved
Do not run steps which require the GITGUARDIAN_API_KEY variable. These
steps always fail because the variable is not available for
pull-requests coming from forks.

Fixes #374
@agateau-gg agateau-gg merged commit b491542 into main Feb 23, 2023
@agateau-gg agateau-gg deleted the agateau/fix-fails-from-forks branch February 23, 2023 09:06
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.

CI fails for pull requests from forks
2 participants