Repository navigation
ci: run the package licence check on PRs - #26
juliusknorr wants to merge 1 commit into
Conversation
|
Please add Also rebase onto #25's head: the green run predates the NOTICE checks. |
moodyjmz
left a comment
There was a problem hiding this comment.
This still targets fix/package-warranty-7a, but #25 merged into main on 11-16. Merging now would land the workflow on that branch, not main. Retargeting alone conflicts, because #25 was rebase-merged and this branch still carries its old commit: there's an add/add conflict on test/licence-metadata.sh. Rebase onto main so the diff is just the workflow file, then add the paths entries from the earlier comment.
Details
- CI result is stale. The green
checkrun is from 11-05, on the branch's pre-NOTICE copy of the script. It needs a fresh run after the rebase. paths: agree with the earlier comment.Makefile,NOTICE.m4,LICENSEandLICENSE-CC.txtall feed the script (Makefile:400-401,:520). With the current filter, a PR that changes onlyNOTICE.m4skips the check, even though that change fails it.- Script on main with this workflow: passes. Changing "is not affiliated with" in
NOTICE.m4fails with::error::Euro-Office NOTICE lacks the ONLYOFFICE origin notice, as intended. - Workflow security is fine: it uses
pull_request(not_target),contents: read, no secrets and no${{ }}interpolation, andactions/checkout@de0fac2e…is thev6.0.2tag commit. - Optional hardening:
persist-credentials: falseon the checkout, andtimeout-minutes: 5on the job.
Repro: in ubuntu:24.04 with make and m4, on main plus this workflow, run test/licence-metadata.sh.
Run test/licence-metadata.sh on PRs and pushes to main that touch the package templates or the files the script renders from (Makefile, NOTICE.m4, LICENSE, LICENSE-CC.txt). The checkout does not persist credentials and the job times out after 5 minutes. No-test: CI workflow, checked by running the script and actionlint Signed-off-by: Julius Knorr <jus@bitgrid.net> Assisted-by: ClaudeCode:claude-opus-5-5
cac2168 to
4c96dfc
Compare
|
@moodyjmz Thanks, and sorry this sat on the old base. Rebased onto main, so the diff is only the workflow file now, and retargeted to main. Added |
moodyjmz
left a comment
There was a problem hiding this comment.
Approve. The diff is now only the workflow on main, with the paths entries and checkout hardening in, and check passes at this head.
|
Superseded by #41, which landed |
Runs
test/licence-metadata.shon PRs and pushes to main, so a dropped licence term, a returning logo clause or a missing ONLYOFFICE origin notice fails CI.deb/,rpm/,common/) and to the files the script renders from:Makefile,NOTICE.m4,LICENSE,LICENSE-CC.txt, plus the script and the workflow itselfcontents: read,persist-credentials: falseon the checkout,timeout-minutes: 5Rebased onto main now that #25 (which adds the script) is merged, so the diff is only the workflow file. Base is main.
Tests: in
ubuntu:24.04withmakeandm4the script passes on this tree, and fails with::error::Euro-Office NOTICE lacks the ONLYOFFICE origin noticewhen "is not affiliated with" is changed inNOTICE.m4. actionlint reports no errors.