Skip to content

Commit 829af95

Browse files
committed
Upgrade versions of action, and cache dependencies
1 parent d779fe6 commit 829af95

File tree

7 files changed

+39
-39
lines changed

7 files changed

+39
-39
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v2
38+
uses: actions/checkout@v3
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v1
42+
uses: github/codeql-action/init@v2
4343
with:
4444
languages: ${{ matrix.language }}
4545
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v1
53+
uses: github/codeql-action/autobuild@v2
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
5656
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
6464
# make release
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v1
67+
uses: github/codeql-action/analyze@v2

.github/workflows/docker-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- name: Build the Docker image
1818
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525

2626
steps:
27-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v3
2828

2929
- name: Run tests
3030
run: |
@@ -45,7 +45,7 @@ jobs:
4545
if: github.event_name == 'push'
4646

4747
steps:
48-
- uses: actions/checkout@v2
48+
- uses: actions/checkout@v3
4949

5050
- name: Build image
5151
run: docker build . --file Dockerfile --tag $IMAGE_NAME

.github/workflows/pytest.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,28 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
- name: Set up Python 3.8
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: 3.8
23+
cache: 'pipenv'
24+
cache-dependency-path: |
25+
**/Pipfile.lock
26+
27+
- name: Install pipenv
28+
run: |
29+
python -m pip install --upgrade pipenv wheel
30+
2331
- name: Install dependencies
2432
run: |
25-
python -m pip install --upgrade pip
26-
python -m pip install pytest rzpipe meson==0.62.0 ninja coverage ciphey frida objection
27-
sudo apt-get install -y ninja-build
28-
33+
pipenv install --dev --skip-lock
34+
pip install meson==0.62.0 ninja
35+
sudo apt-get install ninja-build
36+
2937
# Install graphviz
3038
sudo apt-get -y install graphviz
31-
39+
3240
# Install Rizin
3341
sudo git clone --branch v0.3.4 https://github.com/rizinorg/rizin /opt/rizin/
3442
cd /opt/rizin/
@@ -38,23 +46,14 @@ jobs:
3846
sudo ldconfig -v
3947
cd -
4048
41-
# Install click >= 8.0.0 for CLI supports
42-
python -m pip install click==8.0.3
43-
44-
- name: Install Quark-Engine
45-
run: |
46-
python setup.py build
47-
python setup.py install
48-
4949
- name: Test with pytest
5050
run: |
51-
python -m pip install black pytest sphinx sphinx-rtd-theme
52-
python -m pip install coveralls codecov pytest-cov
53-
pytest --cov=./
51+
pipenv install pytest-cov ciphey frida --skip-lock
52+
pipenv run pytest --cov=. --cov-report=xml
5453
5554
- name: Upload coverage to Codecov
56-
uses: codecov/codecov-action@v1
55+
uses: codecov/codecov-action@v3
5756
with:
5857
flags: unittests
5958
fail_ci_if_error: true
60-
59+
verbose: true

.github/workflows/pythonpublish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v3
1212
- name: Set up Python
13-
uses: actions/setup-python@v1
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: '3.x'
16+
cache: 'pipenv'
17+
cache-dependency-path: |
18+
**/Pipfile.lock
1619
- name: Install dependencies
1720
run: |
1821
python -m pip install --upgrade pip

.github/workflows/smoke_test.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
python-version: [3.8, 3.9]
2727

2828
steps:
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
3030

3131
- name: Set up Python
32-
uses: actions/setup-python@v2
32+
uses: actions/setup-python@v4
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535

@@ -38,15 +38,14 @@ jobs:
3838
python -m pip install --upgrade pip
3939
python -m pip install ciphey frida objection
4040
python -m pip install black pytest sphinx sphinx-rtd-theme
41-
4241
# Install click >= 8.0.0 for CLI supports
4342
python -m pip install click==8.0.3
4443
45-
- run: sudo apt-get -y install graphviz
44+
- run: sudo apt-get -y install graphviz ninja-build
4645
if: matrix.os == 'ubuntu-latest'
47-
- run: brew install graphviz
46+
- run: brew install graphviz ninja
4847
if: matrix.os == 'macOS-latest'
49-
- run: choco install graphviz
48+
- run: choco install graphviz ninja
5049
if: matrix.os == 'windows-latest'
5150

5251
- name: Install Quark-Engine
@@ -68,14 +67,12 @@ jobs:
6867
quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -g
6968
quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -d -g
7069
quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -c
71-
7270
- name: Check Accuracy
7371
shell: bash
7472
run: |
7573
echo "Ahmyth_RESULT=$(quark -a apk-malware-samples/Ahmyth.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
7674
echo "a4db_RESULT=$(quark -a apk-malware-samples/13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
7775
echo "e273e_RESULT=$(quark -a apk-malware-samples/14d9f1a92dd984d6040cc41ed06e273e.apk -s -t 100 | grep 100% | wc -l | awk '{print $1}')" >> $GITHUB_ENV
78-
7976
- name: Check Ahmyt Result
8077
shell: bash
8178
# This sample should have 16 behaviors with 100% confidence
@@ -85,7 +82,6 @@ jobs:
8582
else
8683
exit 1
8784
fi
88-
8985
- name: Check 13667fe3b0ad496a0cd157f34b7e0c991d72a4db.apk Result
9086
shell: bash
9187
# This sample should have 11 behaviors with 100% confidence
@@ -95,7 +91,6 @@ jobs:
9591
else
9692
exit 1
9793
fi
98-
9994
- name: Check 14d9f1a92dd984d6040cc41ed06e273e.apk Result
10095
shell: bash
10196
# This sample should have 15 behaviors with 100% confidence

Pipfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ black = "*"
88
pytest = "*"
99
sphinx = "*"
1010
sphinx-rtd-theme = "*"
11+
pytest-cov = "*"
12+
coveralls = "*"
13+
codecov = "*"
1114

1215
[packages]
1316
prettytable = "<=2.4.0"

0 commit comments

Comments
 (0)