From 05cc1529248a1d65e6b105bbe901d87efe178ccb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:45:56 +0000 Subject: [PATCH 1/2] chore(deps): bump github/codeql-action in the github-actions group Bumps the github-actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action). Updates `github/codeql-action` from 3.27.7 to 3.27.9 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/babb554ede22fd5605947329c4d04d8e7a0b8155...df409f7d9260372bd5f19e5b04e83cb3c43714ae) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/scorecards.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index b9e3918..707003c 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -67,6 +67,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@babb554ede22fd5605947329c4d04d8e7a0b8155 # v3.27.7 + uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9 with: sarif_file: results.sarif From 1e567e61e127df89265685d6e4caea9fa7942a41 Mon Sep 17 00:00:00 2001 From: Chris Swan <478926+cpswan@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:01:06 +0000 Subject: [PATCH 2/2] chore: Fix dart analyze warnings --- packages/at_dump_atKeys/bin/at_pkam.dart | 7 +++---- packages/at_pkam/bin/at_pkam.dart | 3 +-- packages/at_pkam/bin/main.dart | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/at_dump_atKeys/bin/at_pkam.dart b/packages/at_dump_atKeys/bin/at_pkam.dart index f22e84c..7601872 100644 --- a/packages/at_dump_atKeys/bin/at_pkam.dart +++ b/packages/at_dump_atKeys/bin/at_pkam.dart @@ -1,19 +1,18 @@ import 'dart:convert'; import 'dart:io'; -import 'dart:typed_data'; import 'package:crypton/crypton.dart'; import 'package:path/path.dart'; void main(List arguments) { - var Name = arguments[0]; - var privateKey = getSecret(Name); + var name = arguments[0]; + var privateKey = getSecret(name); privateKey = privateKey.trim(); var key = RSAPrivateKey.fromString(privateKey); var challenge = stdin.readLineSync()!; challenge = challenge.trim(); var signature = - base64.encode(key.createSHA256Signature(utf8.encode(challenge) as Uint8List)); + base64.encode(key.createSHA256Signature(utf8.encode(challenge))); stdout.write(signature); stdout.write('\n'); } diff --git a/packages/at_pkam/bin/at_pkam.dart b/packages/at_pkam/bin/at_pkam.dart index b7ac4f6..de693f4 100644 --- a/packages/at_pkam/bin/at_pkam.dart +++ b/packages/at_pkam/bin/at_pkam.dart @@ -1,6 +1,5 @@ import 'dart:convert'; import 'dart:io'; -import 'dart:typed_data'; import 'package:crypton/crypton.dart'; import 'package:path/path.dart'; @@ -11,7 +10,7 @@ void main(List arguments) { var challenge = stdin.readLineSync()!; challenge = challenge.trim(); var signature = - base64.encode(key.createSHA256Signature(utf8.encode(challenge) as Uint8List)); + base64.encode(key.createSHA256Signature(utf8.encode(challenge))); stdout.write(signature); stdout.write('\n'); } diff --git a/packages/at_pkam/bin/main.dart b/packages/at_pkam/bin/main.dart index 5f421fc..68f85e1 100644 --- a/packages/at_pkam/bin/main.dart +++ b/packages/at_pkam/bin/main.dart @@ -37,7 +37,7 @@ Future main(List arguments) async { var key = RSAPrivateKey.fromString(privateKey); challenge = challenge.trim(); var signature = - base64.encode(key.createSHA256Signature(utf8.encode(challenge) as Uint8List)); + base64.encode(key.createSHA256Signature(utf8.encode(challenge))); stdout.write(signature); stdout.write('\n'); }