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

FOSSA license scan runs only on main repo #405

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

eguzki
Copy link
Contributor

@eguzki eguzki commented Dec 11, 2024

Fixes #402

@eguzki eguzki requested a review from alexsnaps December 11, 2024 08:58
@eguzki eguzki linked an issue Dec 11, 2024 that may be closed by this pull request
Copy link
Member

@alexsnaps alexsnaps left a comment

Choose a reason for hiding this comment

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

A little confused why some things were re-enabled back, but if it works its all I care about 😄

@@ -100,23 +100,19 @@ jobs:
# set ref name tag for non-main branches
type=raw,value=${{ github.ref_name }},enable=${{ github.ref_name != env.MAIN_BRANCH_NAME }}
- name: Login to container registry
Copy link
Member

Choose a reason for hiding this comment

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

Wait, we do want to login, ... always?

@@ -12,7 +12,6 @@ on:
jobs:
publish:
name: Publish Limitador crate to crates.io
Copy link
Member

Choose a reason for hiding this comment

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

Why we would allow this on forks?

@@ -12,7 +12,7 @@ on:
jobs:
fossa-scan:
name: Find license compliance and security issues
if: github.repository == 'Kuadrant/limitador'
if: github.event.pull_request.head.repo.full_name == github.repository
Copy link
Member

Choose a reason for hiding this comment

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

Hope this fixes it 🤞
I had this job fail here once on main, but let's try this 🙌

@eguzki eguzki merged commit a6e642c into main Dec 17, 2024
11 checks passed
@eguzki eguzki deleted the 402-fix-gh-actions-to-work-on-forks branch December 17, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Fix GH actions to work on forks!
2 participants