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

docs: add info that license scanning supports file-patterns flag #5484

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

DmitriyLewen
Copy link
Contributor

@DmitriyLewen DmitriyLewen commented Nov 1, 2023

Description

License scanning with license analyzer supports file-patterns flag:

➜ ls -hl .
-rw-r--r--@ 1 work  staff    32K Nov  1 10:25 my-license-file

➜ trivy fs --scanners license --license-full .                 
2023-11-01T10:25:35.698+0600	INFO	Full license scanning is enabled

➜ trivy fs --scanners license --license-full --file-patterns "license-file:.*my-license-file" .
2023-11-01T10:27:02.501+0600	INFO	Full license scanning is enabled

Loose File License(s) (license)

Total: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0)

┌────────────────┬──────────┬─────────┬─────────────────┐
│ Classification │ Severity │ License │  File Location  │
├────────────────┼──────────┼─────────┼─────────────────┤
│ Restricted     │ HIGH     │ GPL-3.0 │ my-license-file │
└────────────────┴──────────┴─────────┴─────────────────┘

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@DmitriyLewen DmitriyLewen marked this pull request as ready for review November 1, 2023 04:28
@DmitriyLewen DmitriyLewen self-assigned this Nov 1, 2023
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com>
@knqyf263 knqyf263 added this pull request to the merge queue Nov 2, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 2, 2023
@knqyf263 knqyf263 added this pull request to the merge queue Nov 6, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 6, 2023
@knqyf263 knqyf263 added this pull request to the merge queue Nov 6, 2023
Merged via the queue into aquasecurity:main with commit d6df5fb Nov 6, 2023
7 checks passed
@DmitriyLewen DmitriyLewen deleted the docs/file-patterns-license branch November 7, 2023 04:10
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