Skip to content

Commit 7434241

Browse files
committed
ci: add license header check
Signed-off-by: Richard Zak <[email protected]>
1 parent e12251f commit 7434241

File tree

8 files changed

+21
-0
lines changed

8 files changed

+21
-0
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ jobs:
2121
- name: cargo clippy
2222
run: cargo clippy --workspace --all-features --tests -- -D warnings
2323

24+
check-spdx-headers:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v6
28+
- uses: enarx/spdx@master
29+
with:
30+
licenses: Apache-2.0
31+
2432
readme:
2533
name: cargo readme
2634
runs-on: ubuntu-latest

ciborium-io/src/eio.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
13
use crate::{Read, Write};
24

35
/// Wrapper around W: embedded_io::Write implementing ciborium::Write

ciborium-ll/src/dec.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
13
use super::*;
24

35
use ciborium_io::Read;

ciborium-ll/src/enc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
13
use super::*;
24

35
use ciborium_io::Write;

ciborium-ll/src/hdr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
13
use super::*;
24

35
#[cfg(feature = "half")]

ciborium-ll/src/seg.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
13
use super::*;
24

35
use ciborium_io::Read;

ciborium/src/tag.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
13
//! Contains helper types for dealing with CBOR tags.
24
35
use serde::{de, de::Error as _, forward_to_deserialize_any, ser, Deserialize, Serialize};

ciborium/src/value/integer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
23
use core::cmp::Ordering;
34

45
macro_rules! implfrom {

0 commit comments

Comments
 (0)