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

feat(ci/license-check): check if specifed images have been manually l… #1203

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

Conversation

marvinWolff
Copy link
Collaborator

…icense checked

Also fixed title of job.

This will fix the problem with trivy, that the licenses of the software in an docker-image are ok, and not if the docker-image itself is ok.

The list will contain every image used by us and check, if an image used by us is not in this list.

@marvinWolff marvinWolff requested a review from a team as a code owner October 9, 2024 10:34
@marvinWolff marvinWolff self-assigned this Oct 9, 2024
@marvinWolff marvinWolff requested review from tasches and cwrau and removed request for SyeKlu October 9, 2024 10:34
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- run: pip install yq
- run: |
mapfile -t IMAGES < <(for chart in charts/*; do if [[ -f "$chart/Chart.yaml" ]]; then yq -r '.annotations["artifacthub.io/images"] // ""' <"$chart/Chart.yaml" ; fi; done | cut -d ":" -f2 | uniq | sort | sed '/^$/d')
Copy link
Member

Choose a reason for hiding this comment

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

This should rather just use the $chart from getChangedChart

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I hope this is fine now, testing is hard when using github-ci

.github/scripts/licenseList Outdated Show resolved Hide resolved
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