-
Notifications
You must be signed in to change notification settings - Fork 17
Action in annotate mode doesn't take path even if valid #46
Copy link
Copy link
Open
Description
Hi,
I'm using the reuse action to annotate and lint my files in my CI setup. While the latter works without problem, using the former fails due to it not accepting any path or globs. This happens regardless when using github env values like ${{ github workspace }}, or setting a working directory.
See below for logs:
You can check my code here
Bug Description
- Create workflow file with reuse action in annotate mode and specify path by using env vars or globs.
- Execute action
- Action complains that path cannot be found even if valid, failing the CI
My workflow file(s):
- relative path
# SPDX-FileCopyrightText: 2018-Present Qelectrotech Team <license@qelectrotech.org>
#
# SPDX-License-Identifier: GPL-2.0-only
name: REUSE
on:
push:
branches:
- master
- Int-Circuit-patch-1
paths-ignore:
- 'LICENSES/*'
defaults:
run:
working-directory: source
jobs:
Licensing:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: REUSE SPDX SBOM
uses: fsfe/reuse-action@v6
with:
args: annotate --copyright="Qelectrotech Team <license@qelectrotech.org>" --license="GPL-2.0-only" --fallback-dot-license --recursive --year="2018-Present" --skip-existing faq.rst
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v6
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.MR_TOKEN }}
commit-message: License files
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
title: Licensing files
body: |
- Correctly licensing files following commit ${{ github.sha }}.
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: update-reuse
labels: |
reuse
cicd
delete-branch: true
add-paths: source/**/*.rst
- globs
# SPDX-FileCopyrightText: 2018-Present Qelectrotech Team <license@qelectrotech.org>
#
# SPDX-License-Identifier: GPL-2.0-only
name: REUSE
on:
push:
branches:
- master
- Int-Circuit-patch-1
paths-ignore:
- 'LICENSES/*'
defaults:
run:
working-directory: source
jobs:
Licensing:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: REUSE SPDX SBOM
uses: fsfe/reuse-action@v6
with:
args: annotate --copyright="Qelectrotech Team <license@qelectrotech.org>" --license="GPL-2.0-only" --fallback-dot-license --recursive --year="2018-Present" --skip-existing ./**/*.rst
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v6
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.MR_TOKEN }}
commit-message: License files
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
title: Licensing files
body: |
- Correctly licensing files following commit ${{ github.sha }}.
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: update-reuse
labels: |
reuse
cicd
delete-branch: true
add-paths: source/**/*.rst
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels