Skip to content

add initial filetype support #12

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

Merged
merged 1 commit into from
Dec 22, 2021
Merged

Conversation

cpanato
Copy link
Member

@cpanato cpanato commented Dec 22, 2021

What type of PR is this?

/kind feature

What this PR does / why we need it:

/assign @puerco @justaugustus @saschagrunert
cc @kubernetes-sigs/release-engineering

$ ./main generate -f RELEASE.md
INFO Generating SPDX Bill of Materials
INFO Processing file RELEASE.md
WARN Document has no name defined, automatically set to SBOM-SPDX-800a2e0e-6a1b-44e2-aa69-1ef3fa936a9e
SPDXVersion: SPDX-2.2
DataLicense: CC0-1.0
SPDXID: SPDXRef-DOCUMENT
DocumentName: SBOM-SPDX-800a2e0e-6a1b-44e2-aa69-1ef3fa936a9e
DocumentNamespace: https://spdx.org/spdxdocs/k8s-releng-bom-9ec315ad-fe71-44de-a8b9-e0cbaf057a84
Creator: Tool: sigs.k8s.io/bom/pkg/spdx
Created: 2021-12-22T15:43:46Z



##### Files independent of packages

FileName: RELEASE.md
SPDXID: SPDXRef-File-RELEASE.md
FileChecksum: SHA1: 45d89353c054efa274f53e21d06449211804817b
FileChecksum: SHA256: 45c3e468ec5eee5e8e58c8c99b8ff6197e598597665bcc22e66e49d566b5df1f
FileChecksum: SHA512: 6d6c44e086323d2920d39d338ef6c258b40bff47cc4eb033bb6e90bc0e845b66f1b16382822beeced29c942b563ef07a7bf52976449363794f25cfcff9aa6bf2
FileType: TEXT
FileType: DOCUMENTATION
LicenseConcluded: NOASSERTION
LicenseInfoInFile: NOASSERTION
FileCopyrightText: NOASSERTION


Relationship: SPDXRef-DOCUMENT DESCRIBES SPDXRef-File-RELEASE.md

Which issue(s) this PR fixes:

Fixes: #10

Special notes for your reviewer:

Does this PR introduce a user-facing change?

add initial filetype support

Signed-off-by: Carlos Panato <[email protected]>
@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 22, 2021
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 22, 2021
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 22, 2021
require.EqualValues(t, []string{"SOURCE"}, fileType)
require.NoError(t, os.RemoveAll(dir))

file, dir, err = createTempFile("honk.*.mp3")
Copy link
Member

Choose a reason for hiding this comment

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

image

Copy link
Member Author

Choose a reason for hiding this comment

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

/honk

Copy link
Member

@puerco puerco left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this @cpanato !!
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 22, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, puerco

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 9abc9b5 into kubernetes-sigs:main Dec 22, 2021
@cpanato cpanato deleted the GH-10 branch December 23, 2021 08:37
@k8s-ci-robot
Copy link
Contributor

@cpanato:
goose image

In response to this:

/honk

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

puerco added a commit to puerco/bom that referenced this pull request Feb 2, 2022
\ kubernetes-sigs#12 added support for adding filetypes to generated SBOMs, this commit
comlpletes the parser side by supporting file types when parsing.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
puerco added a commit to puerco/bom that referenced this pull request Feb 4, 2022
\ kubernetes-sigs#12 added support for adding filetypes to generated SBOMs, this commit
comlpletes the parser side by supporting file types when parsing.

Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File Type Support
5 participants