-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (38 loc) · 1.48 KB
/
test_source_plaso.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Install Plaso from source on Ubuntu Docker images using GIFT PPA
name: test_source_plaso
on: [push]
jobs:
test_ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['24.04']
container:
image: ubuntu:${{ matrix.version }}
steps:
- name: Set up container
env:
DEBIAN_FRONTEND: noninteractive
run: |
apt-get update -q
apt-get install -y libterm-readline-gnu-perl locales software-properties-common
locale-gen en_US.UTF-8
ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
apt-get install -y git python3 sudo
- name: Download Plaso source
run: |
BRANCH=`echo ${GITHUB_REF} | sed 's?^.*/??'`
if test ${BRANCH} = "main"; then \
LATEST_TAG=`git ls-remote --tags https://github.com/log2timeline/plaso.git | sort -k2 | tail -n1 | sed 's?^.*refs/tags/??'` && git clone -b ${LATEST_TAG} https://github.com/log2timeline/plaso.git; \
else \
git clone https://github.com/log2timeline/plaso.git; \
fi
- name: Install dependencies
run: |
export GIFT_PPA_TRACK=`echo ${GITHUB_REF} | sed 's?^.*/??;s?main?stable?'`;
plaso/config/linux/ubuntu_install_plaso.sh
- name: Run Plaso
run: |
cd plaso
PYTHONPATH=. python3 plaso/scripts/log2timeline.py --status_view linear --storage_file test.plaso test_data/image.qcow2
PYTHONPATH=. python3 plaso/scripts/psort.py --status_view linear -w timeline.log test.plaso