Skip to content

Fix: SPDX decode error originator#221

Merged
kzantow merged 3 commits intospdx:mainfrom
spiffcs:spdx-decode-error-originator
Jul 27, 2023
Merged

Fix: SPDX decode error originator#221
kzantow merged 3 commits intospdx:mainfrom
spiffcs:spdx-decode-error-originator

Conversation

@spiffcs
Copy link
Copy Markdown
Contributor

@spiffcs spiffcs commented Jul 27, 2023

Summary

Given the field "originator" : "Organization:SPDX", tools-golang would error on decoding a valid SBOM.

This change adds test protection to the reader for any future changes to 2_3 custom unmarshalling as well as fixes the underlying error where the originator field will consider both : and : as valid split cases.

spiffcs added 2 commits July 27, 2023 11:40
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
@spiffcs
Copy link
Copy Markdown
Contributor Author

spiffcs commented Jul 27, 2023

cc @kzantow @lumjjb for review =)

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
@kzantow kzantow merged commit 6a271aa into spdx:main Jul 27, 2023
another-rex referenced this pull request in google/osv-scanner Aug 2, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/go-git/go-git/v5](https://togithub.com/go-git/go-git) |
require | patch | `v5.8.0` -> `v5.8.1` |
| [github.com/spdx/tools-golang](https://togithub.com/spdx/tools-golang)
| require | patch | `v0.5.2` -> `v0.5.3` |
| golang.org/x/exp | require | digest | `613f0c0` -> `d63ba01` |

---

### Release Notes

<details>
<summary>go-git/go-git (github.com/go-git/go-git/v5)</summary>

### [`v5.8.1`](https://togithub.com/go-git/go-git/releases/tag/v5.8.1)

[Compare
Source](https://togithub.com/go-git/go-git/compare/v5.8.0...v5.8.1)

#### What's Changed

- \*: Bump dependencies by [@&#8203;pjbgf](https://togithub.com/pjbgf)
in
[https://github.com/go-git/go-git/pull/815](https://togithub.com/go-git/go-git/pull/815)

**Full Changelog**:
go-git/go-git@v5.8.0...v5.8.1

</details>

<details>
<summary>spdx/tools-golang (github.com/spdx/tools-golang)</summary>

###
[`v0.5.3`](https://togithub.com/spdx/tools-golang/releases/tag/v0.5.3)

[Compare
Source](https://togithub.com/spdx/tools-golang/compare/v0.5.2...v0.5.3)

#### What's Changed

- Fix: SPDX decode error originator by
[@&#8203;spiffcs](https://togithub.com/spiffcs) in
[https://github.com/spdx/tools-golang/pull/221](https://togithub.com/spdx/tools-golang/pull/221)

#### New Contributors

- [@&#8203;spiffcs](https://togithub.com/spiffcs) made their first
contribution in
[https://github.com/spdx/tools-golang/pull/221](https://togithub.com/spdx/tools-golang/pull/221)

**Full Changelog**:
spdx/tools-golang@v0.5.2...v0.5.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on monday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/google/osv-scanner).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4yNC4yIiwidXBkYXRlZEluVmVyIjoiMzYuMjcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
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