Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
runs-on: ubuntu-latest-low
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false

- name: REUSE Compliance Check
uses: fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0
uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
6 changes: 6 additions & 0 deletions build/frontend-legacy/WebpackSPDXPlugin.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,10 @@ class WebpackSPDXPlugin {
const match = source.match(/asset\/inline\|data:image\/svg\+xml,(.+)/)
if (match) {
const content = decodeURI(match[1])
// REUSE-IgnoreStart
const [, license] = content.match(/SPDX-License-Identifier:\s*([^\s]+)/) ?? []
const [, author] = content.match(/SPDX-FileCopyrightText:\s*([^-]+)/) ?? []
// REUSE-IgnoreEnd
if (author && license) {
authors.add(author)
licenses.add(license)
Expand All @@ -219,10 +221,14 @@ class WebpackSPDXPlugin {
}

for (const author of [...authors].sort()) {
// REUSE-IgnoreStart
output = `SPDX-FileCopyrightText: ${author}\n${output}`
// REUSE-IgnoreEnd
}
for (const license of [...licenses].sort()) {
// REUSE-IgnoreStart
output = `SPDX-License-Identifier: ${license}\n${output}`
// REUSE-IgnoreEnd
}

compilation.emitAsset(
Expand Down
Loading