From 255e848b8214963951282a48a9c89c491efad6a2 Mon Sep 17 00:00:00 2001 From: Tim Balsfulland Date: Thu, 4 Jan 2024 14:17:12 +0100 Subject: [PATCH] automatically check out rules --- .github/workflows/test.yml | 3 +-- action.yml | 8 +++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0a0f1af6..5284845eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,7 @@ jobs: - name: Checkout source code uses: actions/checkout@v3 - name: Run CogniCrypt - uses: Timbals/CryptoAnalysis@be1b88d536592c3ab08af5969808d075b8c59d82 + uses: ./ with: - rulesDir: "$(pwd)/JCA-CrySL-rules" appPath: "$(pwd)/CryptoAnalysisTargets/CogniCryptDemoExample/Examples.jar" basePath: "CryptoAnalysisTargets/CogniCryptDemoExample/src/main/java" diff --git a/action.yml b/action.yml index 1181895c0..9b615a60e 100644 --- a/action.yml +++ b/action.yml @@ -5,7 +5,7 @@ inputs: description: "Path to relate paths in the analyzed jar and the source tree. Class \"com.example\" is searched for at \"basePath/com/example\"." rulesDir: description: "TODO" - required: true + default: "rules_98e04be6/JavaCryptographicArchitecture/src/" appPath: description: "TODO" required: true @@ -38,6 +38,12 @@ runs: java-package: jdk java-version: '11' + - name: Checkout rules + uses: actions/checkout@v4 + with: + repository: CROSSINGTUD/Crypto-API-Rules + path: rules_98e04be6 + - name: Checkout source code uses: actions/checkout@v4 with: