Skip to content

add fossa CI#13

Merged
ruslanti merged 1 commit intomainfrom
fossa
Sep 5, 2025
Merged

add fossa CI#13
ruslanti merged 1 commit intomainfrom
fossa

Conversation

@ruslanti
Copy link
Contributor

@ruslanti ruslanti commented Sep 2, 2025

No description provided.

@ruslanti ruslanti self-assigned this Sep 2, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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
Copy link

Copilot AI Sep 2, 2025

Choose a reason for hiding this comment

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

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 }}

Copilot uses AI. Check for mistakes.
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
Copy link

Copilot AI Sep 2, 2025

Choose a reason for hiding this comment

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

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.

Copilot uses AI. Check for mistakes.
@ruslanti ruslanti requested a review from qrdl September 5, 2025 08:03
@ruslanti ruslanti merged commit b30a18a into main Sep 5, 2025
3 checks passed
@ruslanti ruslanti deleted the fossa branch September 5, 2025 14:51
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.

3 participants