Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Added go package to support v2 ingestion #10

Merged
merged 1 commit into from
Jan 1, 2025
Merged

Conversation

eddie-knight
Copy link
Contributor

@eddie-knight eddie-knight commented Jan 1, 2025

Part of ossf/security-insights-spec#97

This adds support for the v2 release of Security Insights spec. It will read the specified security insights file, look for a value in header.project-si-source, and (if found) override the target SI with the project information from the SI source file.

Example usage:

package main

import (
	"fmt"

	"github.com/ossf/si-tooling/v2/si"
)

func main() {
	out, err := si.Read("ossf", "security-insights-spec", ".github/security-insights.yml")
	if err != nil {
		fmt.Print(err)
		return
	}
	fmt.Print(out)
}

Signed-off-by: Eddie Knight <knight@linux.com>
@eddie-knight eddie-knight merged commit 5d48a32 into main Jan 1, 2025
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant