Skip to content

Commit

Permalink
Merge pull request #541 from BenediktMKuehne/testing-workflows
Browse files Browse the repository at this point in the history
Testing workflows
  • Loading branch information
m-1-k-3 authored Mar 30, 2023
2 parents 577cbcb + 4ede2e2 commit 107d304
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/default_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ jobs:
- name: EMBA default analysis
run: |
sudo ./emba -f ./DIR-300_fw_revb_214b01_ALL_de_20130206.zip -l ./logs_emba -S -p ./scan-profiles/default-scan-emulation.emba -y -j
- name: Check result files exist
id: check_files
uses: andstor/file-existence-action@v2
with:
files: "./logs_emba/emba.log, ./logs_emba/csv_logs/f50_base_aggregator.csv, ./logs_emba/html-report/index.html"

- name: Files exist
if: steps.check_files.outputs.files_exists == 'true'
# Only runs if all of the files exist
run: echo All files exist!
8 changes: 4 additions & 4 deletions modules/F50_base_aggregator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ F50_base_aggregator() {

CVE_AGGREGATOR_LOG="f20_vul_aggregator.txt"
F20_EXPLOITS_LOG="$LOG_DIR"/f20_vul_aggregator/exploits-overview.txt
P02_LOG="p02_firmware_bin_file_check.csv"
P99_CSV_LOG="$CSV_DIR""p99_prepare_analyzer.csv"
P02_CSV_LOG="$CSV_DIR""/p02_firmware_bin_file_check.csv"
P99_CSV_LOG="$CSV_DIR""/p99_prepare_analyzer.csv"
P35_LOG="p35_uefi_extractor.txt"
S03_LOG="s03_firmware_bin_base_analyzer.txt"
S05_LOG="s05_firmware_details.txt"
Expand Down Expand Up @@ -771,8 +771,8 @@ get_data() {
export K_CVE_VERIFIED_COMPILED=0
export APK_ISSUES=0

if [[ -f "$LOG_DIR"/"$P02_LOG" ]]; then
ENTROPY=$(grep -a "Entropy" "$LOG_DIR"/"$P02_LOG" | cut -d\; -f2 | cut -d= -f2 | sed 's/^\ //' || true)
if [[ -f "$P02_CSV_LOG" ]]; then
ENTROPY=$(grep -a "Entropy" "$P02_CSV_LOG" | cut -d\; -f2 | cut -d= -f2 | sed 's/^\ //' || true)
fi
if [[ -f "$LOG_DIR"/"$P35_LOG" ]]; then
EFI_ARCH=$(grep -a "Possible architecture details found" "$LOG_DIR"/"$P35_LOG" | cut -d: -f2 | sed 's/\ //g' | tr '\r\n' '/' || true)
Expand Down

0 comments on commit 107d304

Please sign in to comment.