Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds FOSSA license scanning and compliance checking to the CI/CD pipeline through a new GitHub Actions workflow.
- Introduces FOSSA CLI integration for dependency license analysis
- Configures workflow to run on push, pull requests, manual dispatch, and merge group events
- Sets up license compliance testing as part of the CI process
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Comment on lines
+18
to
+29
| - name: Install FOSSA CLI | ||
| run: | | ||
| curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash | ||
|
|
||
| - name: Set FOSSA API Key | ||
| run: echo "FOSSA_API_KEY=${{ secrets.FOSSA_PUB_API_KEY }}" >> $GITHUB_ENV | ||
|
|
||
| - name: Run FOSSA Analysis | ||
| run: fossa analyze | ||
|
|
||
| - name: Run FOSSA Test | ||
| run: fossa test No newline at end of file |
There was a problem hiding this comment.
Downloading and executing a shell script directly from the internet without verification poses a security risk. Consider pinning to a specific version or using the official FOSSA GitHub Action instead.
Suggested change
| - name: Install FOSSA CLI | |
| run: | | |
| curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash | |
| - name: Set FOSSA API Key | |
| run: echo "FOSSA_API_KEY=${{ secrets.FOSSA_PUB_API_KEY }}" >> $GITHUB_ENV | |
| - name: Run FOSSA Analysis | |
| run: fossa analyze | |
| - name: Run FOSSA Test | |
| run: fossa test | |
| - name: Run FOSSA Analysis | |
| uses: fossas/fossa-action@v1 | |
| with: | |
| api-key: ${{ secrets.FOSSA_PUB_API_KEY }} |
| curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash | ||
|
|
||
| - name: Set FOSSA API Key | ||
| run: echo "FOSSA_API_KEY=${{ secrets.FOSSA_PUB_API_KEY }}" >> $GITHUB_ENV |
There was a problem hiding this comment.
Setting the API key as an environment variable in this manner may expose it in logs. Consider using the env key at the step level or job level instead.
qrdl
approved these changes
Sep 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.