File tree Expand file tree Collapse file tree 8 files changed +2405
-860
lines changed Expand file tree Collapse file tree 8 files changed +2405
-860
lines changed Original file line number Diff line number Diff line change 6
6
CARGO_INCREMENTAL : ' 1'
7
7
CARGO_DENY_VERSION : 0.18.4
8
8
CARGO_AUDIT_VERSION : 0.21.2
9
+ CARGO_ABOUT_VERSION : 0.8.2
9
10
' on ' :
10
11
push :
11
12
branches :
@@ -362,7 +363,7 @@ jobs:
362
363
uses : actions/cache@v4
363
364
with :
364
365
path : ~/.cargo/bin
365
- key : ${{ runner.os }}-cargo-tools-deny-${{ env.CARGO_DENY_VERSION }}-audit-${{ env.CARGO_AUDIT_VERSION }}
366
+ key : ${{ runner.os }}-cargo-tools-deny-${{ env.CARGO_DENY_VERSION }}-audit-${{ env.CARGO_AUDIT_VERSION }}-about-${{ env.CARGO_ABOUT_VERSION }}
366
367
restore-keys : |
367
368
${{ runner.os }}-cargo-tools-
368
369
@@ -378,8 +379,27 @@ jobs:
378
379
cargo install --locked --version ${{ env.CARGO_AUDIT_VERSION }} cargo-audit
379
380
fi
380
381
382
+ - name : Install cargo-about
383
+ run : |
384
+ if ! command -v cargo-about &> /dev/null; then
385
+ cargo install --locked --version ${{ env.CARGO_ABOUT_VERSION }} cargo-about
386
+ fi
387
+
381
388
- name : Run cargo deny
382
389
run : cargo deny check
383
390
384
391
- name : Run cargo audit
385
392
run : cargo audit
393
+
394
+ - name : Verify LICENSE-3RD-PARTY.txt is up to date
395
+ run : |
396
+ cargo about generate --frozen about.hbs > LICENSE-3RD-PARTY-generated.txt
397
+ if ! diff -q LICENSE-3RD-PARTY.txt LICENSE-3RD-PARTY-generated.txt > /dev/null; then
398
+ echo "ERROR: LICENSE-3RD-PARTY.txt is not up to date!"
399
+ echo "Please run: cargo about generate about.hbs > LICENSE-3RD-PARTY.txt"
400
+ echo "Differences found:"
401
+ diff LICENSE-3RD-PARTY.txt LICENSE-3RD-PARTY-generated.txt || true
402
+ exit 1
403
+ fi
404
+ rm LICENSE-3RD-PARTY-generated.txt
405
+ echo "LICENSE-3RD-PARTY.txt is up to date"
Original file line number Diff line number Diff line change 117
117
# Added by cargo
118
118
119
119
/target
120
- Cargo.lock
121
120
122
121
* .node
123
122
.pnp. *
Original file line number Diff line number Diff line change @@ -101,10 +101,10 @@ This verifies that all dependencies use acceptable licenses and checks for known
101
101
We use [ ` cargo-about ` ] ( https://github.com/EmbarkStudios/cargo-about ) to generate our third-party licenses notice:
102
102
103
103
``` sh
104
- cargo about generate about.hbs > license.html
104
+ cargo about generate --frozen about.hbs > LICENSE-3RD-PARTY.txt
105
105
```
106
106
107
- This generates an HTML file containing all third-party license information for our dependencies.
107
+ This generates the file containing all third-party license information for our dependencies.
108
108
109
109
## Submitting Your Changes
110
110
You can’t perform that action at this time.
0 commit comments