Skip to content

Commit

Permalink
ci: Update Check Spelling job
Browse files Browse the repository at this point in the history
 * Start using codespell-project/actions-codespell@master
 * Fix spelling mistakes and add spellcheck exceptions

Signed-off-by: Tomás González <[email protected]>
  • Loading branch information
tgonzalezorlandoarm committed Oct 5, 2023
1 parent 279e4e4 commit 5bc3e16
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Check spelling
uses: codespell-project/actions-codespell@v1
uses: codespell-project/actions-codespell@master
with:
ignore_words_list: "AcSend,"
path: tss-esapi
skip: "*/target,*-sys"

formatting:
name: Check formatting
Expand Down
2 changes: 1 addition & 1 deletion tss-esapi/src/abstraction/pcr/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl PcrBank {
self.bank.is_empty()
}

/// Removees the [Digest] associated with the [PcrSlot] and
/// Removes the [Digest] associated with the [PcrSlot] and
/// returns it.
///
/// # Details
Expand Down
4 changes: 2 additions & 2 deletions tss-esapi/src/context/tpm_commands/duplication_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl Context {
/// # .key_handle;
/// #
/// # // Fixed TPM and Fixed Parent should be "false" for an object
/// # // to be elligible for duplication
/// # // to be eligible for duplication
/// # let object_attributes = ObjectAttributesBuilder::new()
/// # .with_fixed_tpm(false)
/// # .with_fixed_parent(false)
Expand Down Expand Up @@ -500,7 +500,7 @@ impl Context {
/// # .key_handle;
/// #
/// # // Fixed TPM and Fixed Parent should be "false" for an object
/// # // to be elligible for duplication
/// # // to be eligible for duplication
/// # let object_attributes = ObjectAttributesBuilder::new()
/// # .with_fixed_tpm(false)
/// # .with_fixed_parent(false)
Expand Down
2 changes: 1 addition & 1 deletion tss-esapi/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use zeroize::{Zeroize, ZeroizeOnDrop};
/// Rust native wrapper for `TPMS_CONTEXT` objects.
///
/// This structure is intended to help with persisting object contexts. As the main reason for
/// saving the context of an object is to be able to re-use it later, on demand, a serializable
/// saving the context of an object is to be able to reuse it later, on demand, a serializable
/// structure is most commonly needed. `TpmsContext` implements the `Serialize` and `Deserialize`
/// defined by `serde`.
#[derive(Debug, Serialize, Deserialize, Clone, Zeroize, ZeroizeOnDrop)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ mod test_duplicate {
let mut context = create_ctx_with_session();

// Fixed TPM and Fixed Parent should be "false" for an object
// to be elligible for duplication
// to be eligible for duplication
let object_attributes = ObjectAttributesBuilder::new()
.with_fixed_tpm(false)
.with_fixed_parent(false)
Expand Down

0 comments on commit 5bc3e16

Please sign in to comment.