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 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'); }