Skip to content

Commit 11cdda7

Browse files
committed
chore: Migrate reuse to toml format
Signed-off-by: Jonas <jonas@freesources.org>
1 parent 0223452 commit 11cdda7

3 files changed

Lines changed: 51 additions & 54 deletions

File tree

.github/workflows/reuse.yml

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,17 @@ name: REUSE Compliance Check
1111

1212
on: [pull_request]
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
reuse-compliance-check:
1619
runs-on: ubuntu-latest
1720
steps:
18-
- name: Checkout
19-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
20-
21-
- name: Read package.json node and npm engines version
22-
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
23-
id: versions
24-
with:
25-
fallbackNode: '^20'
26-
fallbackNpm: '^10'
27-
28-
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
29-
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
30-
with:
31-
node-version: ${{ steps.versions.outputs.nodeVersion }}
32-
33-
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
34-
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
35-
36-
- name: Install dependencies & build
37-
env:
38-
CYPRESS_INSTALL_BINARY: 0
39-
run: |
40-
npm ci
41-
npm run build --if-present
21+
- name: Checkout
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
persist-credentials: false
4225

43-
- name: REUSE Compliance Check
44-
uses: fsfe/reuse-action@3ae3c6bdf1257ab19397fab11fd3312144692083 # v4.0.0
26+
- name: REUSE Compliance Check
27+
uses: fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0

.reuse/dep5

Lines changed: 0 additions & 28 deletions
This file was deleted.

REUSE.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
version = 1
4+
SPDX-PackageName = "text"
5+
SPDX-PackageSupplier = "Nextcloud <info@nextcloud.com>"
6+
SPDX-PackageDownloadLocation = "https://github.com/nextcloud/text"
7+
8+
[[annotations]]
9+
path = [".gitattributes", ".editorconfig", "babel.config.js", ".php-cs-fixer.dist.php", "package-lock.json", "package.json", "composer.json", "composer.lock", "webpack.js", "stylelint.config.js", ".eslintrc.js", "cypress/.eslintrc.json", ".gitignore", ".jshintrc", ".l10nignore", "action/.gitignore", "action/package.json", "action/package-lock.json", "action/dist/index.js", "tests/**", "psalm.xml", "vendor-bin/**/composer.json", "vendor-bin/**/composer.lock", ".tx/config", "webpack.config.js", "js/vendor.LICENSE.txt", ".github/CODEOWNERS", "vite.config.js", "stylelint.config.cjs", "composer/**.php", "composer/composer.**", "tsconfig.json", "jsconfig.json", "krankerl.toml", "renovate.json", ".github/ISSUE_TEMPLATE/**", ".nextcloudignore", "CHANGELOG.md", ".tsconfig.json"]
10+
precedence = "aggregate"
11+
SPDX-FileCopyrightText = "none"
12+
SPDX-License-Identifier = "CC0-1.0"
13+
14+
[[annotations]]
15+
path = ["l10n/**.js", "l10n/**.json", "js/**.mjs.map", "js/**.mjs", "css/**.css"]
16+
precedence = "aggregate"
17+
SPDX-FileCopyrightText = "2019-2024 Nextcloud GmbH and Nextcloud contributors"
18+
SPDX-License-Identifier = "AGPL-3.0-or-later"
19+
20+
[[annotations]]
21+
path = ["src/assets/status-icons/user-status-away.svg", "src/assets/status-icons/user-status-dnd.svg", "src/assets/status-icons/user-status-online.svg", "img/checkbox-mark.svg", "img/article.svg"]
22+
precedence = "aggregate"
23+
SPDX-FileCopyrightText = "2018-2024 Google LLC"
24+
SPDX-License-Identifier = "Apache-2.0"
25+
26+
[[annotations]]
27+
path = ["lib/composer/**", "apps/**/composer/autoload.php", "apps/**/composer/composer/**.php", "apps/files_external/3rdparty/autoload.php", "composer/composer/**"]
28+
precedence = "aggregate"
29+
SPDX-FileCopyrightText = "Nils Adermann, Jordi Boggiano"
30+
SPDX-License-Identifier = "MIT"
31+
32+
[[annotations]]
33+
path = ["cypress/fixtures/**", "cypress/snapshots/**", "src/tests/fixtures/**"]
34+
precedence = "aggregate"
35+
SPDX-FileCopyrightText = "2019-2024 Nextcloud GmbH and Nextcloud contributors"
36+
SPDX-License-Identifier = "AGPL-3.0-or-later"
37+
38+
[[annotations]]
39+
path = ["img/app-dark.svg", "img/app.png", "img/app.svg", "img/screenshots/**"]
40+
precedence = "aggregate"
41+
SPDX-FileCopyrightText = "2019-2024 Nextcloud GmbH and Nextcloud contributors"
42+
SPDX-License-Identifier = "AGPL-3.0-or-later"

0 commit comments

Comments
 (0)