Skip to content

fix(ci): encrypt SARIF artifacts - #38

Open
moghit-eou wants to merge 1 commit into
Medical-Informatics-Platform:masterfrom
moghit-eou:fix/sarif-exposure
Open

fix(ci): encrypt SARIF artifacts#38
moghit-eou wants to merge 1 commit into
Medical-Informatics-Platform:masterfrom
moghit-eou:fix/sarif-exposure

Conversation

@moghit-eou

Copy link
Copy Markdown
Contributor
  • Encrypt the merged SARIF with gpg before upload.
  • Skip with a warning when ARTIFACT_PASSWORD is unavailable (Dependabot, fork PRs).
  • One merged Security tab upload per pipeline instead of one per tool.

Before merge: add an ARTIFACT_PASSWORD repository secret.
Decrypt an artifact with:

gpg --decrypt --output report.sarif <name>.sarif.gpg

Also adds overrides for less (^4.9.0, drops the vulnerable image-size),
fast-uri and qs, which clears the SCA findings that were failing the gate.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

1 similar comment
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

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