diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 143f6ac4..9bb67a3d 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -6,21 +6,20 @@ jobs: cpp-linter: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: cpp-linter/cpp-linter-action@v2 + - uses: actions/checkout@v4 + - uses: cpp-linter/cpp-linter-action@main id: linter + continue-on-error: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - style: file - # The following value will only update a single comment - # in a pull request's thread. Set it to false to disable the comment. - # Set it to true to post a new comment (and delete the old comment). - # thread-comments: ${{ github.event_name == 'pull_request' && 'update' }} - thread-comments: ${{ github.event_name == 'push' && 'update' }} + style: '' + files-changed-only: false + ignore: crypto - name: Fail fast?! - if: steps.linter.outputs.checks-failed > 0 - run: echo "Some files failed the linting checks!" + if: steps.linter.outputs.checks-failed != 0 + run: | + echo "some linter checks failed. ${{ steps.linter.outputs.checks-failed }}" # for actual deployment # run: exit 1 \ No newline at end of file diff --git a/README.md b/README.md index 3d0b4c1f..d0c6d69f 100644 --- a/README.md +++ b/README.md @@ -97,3 +97,4 @@ you can find here](.github/CONTRIBUTING.md). [NuMaker-PFM-M2351]: http://www.nuvoton.com.cn/hq/products/iot-solution/iot-platform/numaker-maker-platform/numaker-pfm-m2351?__locale=en [M2351-Badge]: docs/schemes/m2351_badge [V2M-MPS2-Qemu]: https://developer.arm.com/documentation/100964/1114/Microcontroller-Prototyping-System-2?lang=en + diff --git a/tools/ecdsa_keygen.c b/tools/ecdsa_keygen.c index 96bc164e..2955fc60 100644 --- a/tools/ecdsa_keygen.c +++ b/tools/ecdsa_keygen.c @@ -75,11 +75,11 @@ typedef struct Message_Struct { /* Private Data. */ /* All static data definitions appear here. */ -uint32_t key[] = +const uint32_t key[] = { 0x78563412, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xefcdac00 }; -uint32_t iv[] = +const uint32_t iv[] = { 0x78563412, 0x00000000, 0x00000000, 0xefcdac00 }; /* Public Data. */ @@ -374,7 +374,7 @@ int main(int argc, char * argv[]) } fclose(fd); -exit: +// exit: BN_free(x); BN_free(y); EC_GROUP_free(ecgroup);