-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (60 loc) · 2.05 KB
/
test_install_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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Install Plaso on Fedora and Ubuntu Docker images using GIFT CORP and GIFT PPA
name: test_install_plaso
on: [push]
jobs:
test_fedora:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['38', '39', '40']
container:
image: registry.fedoraproject.org/fedora:${{ matrix.version }}
steps:
- name: Set up container
run: |
dnf install -y dnf-plugins-core langpacks-en
- name: Install Plaso
run: |
TRACK=`echo ${GITHUB_REF} | sed 's?^.*/??;s?main?stable?'`;
dnf copr -y enable @gift/${TRACK}
dnf install -y curl plaso-tools python3
- name: Download test data
run: |
curl -L -o image.qcow2 https://github.com/log2timeline/plaso/blob/main/test_data/image.qcow2?raw=true
- name: Run Plaso
env:
LANG: C.utf8
run: |
/usr/bin/log2timeline.py --status_view linear --storage_file test.plaso image.qcow2
/usr/bin/psort.py --status_view linear -w timeline.log test.plaso
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
- name: Install Plaso
env:
DEBIAN_FRONTEND: noninteractive
run: |
TRACK=`echo ${GITHUB_REF} | sed 's?^.*/??;s?main?stable?'`;
add-apt-repository -y ppa:gift/${TRACK}
apt-get update -q
apt-get install -y curl plaso-tools python3
- name: Download test data
run: |
curl -L -o image.qcow2 https://github.com/log2timeline/plaso/blob/main/test_data/image.qcow2?raw=true
- name: Run Plaso
run: |
/usr/bin/log2timeline.py --status_view linear --storage_file test.plaso image.qcow2
/usr/bin/psort.py --status_view linear -w timeline.log test.plaso