anchore / anchore/syft

Identify SPDX license identifiers

Open
#565 0 comments 6 reactions 0 assignees View on GitHub
enhancement format:spdx license
Dominant language
Go
Stars
9.6k
Forks
954
Avg merge
1d 5h
Merged PRs (30d)
42

Description

**What would you like to be added**:
The ability to identify SPDX license identifiers from individual files, such as:
```golang
/* SPDX-License-Identifier: GPL-3.0-or-later */

package main

import "fmt"

func main() {
// ...
}
```

Here's an example source repo where all of the source files (including github workflows) have these SPDX tags https://github.com/agherzan/git-mirror-me

**Why is this needed**:
This is helpful for folks that are most interested in scanning source repositories over container artifacts or other binary artifacts.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Syft's source-repository and filesystem scanning entry points, then compare the requested behavior with the SPDX-tagged files in the linked git-mirror-me repository. Done means individual source files, including workflow files, have their SPDX-License-Identifier values identified during repository scanning.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.