Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitstack committed Oct 28, 2023
2 parents 1a91540 + 0330d40 commit e378b05
Show file tree
Hide file tree
Showing 34 changed files with 847 additions and 153 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ on:
- "CONTRIBUTING.md"
- "docs/**"

env:
GO_VERSION: 1.21.x

jobs:
build:
runs-on: windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: ${{ env.GO_VERSION }}
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Adjust pkg-config prefix
shell: bash
run: |
Expand All @@ -37,7 +40,7 @@ jobs:
libtool
autoconf
- name: Cache yara
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: |
Expand Down Expand Up @@ -94,7 +97,7 @@ jobs:
export PATH="/c/wix:$PATH"
export VERSION=0.0.0
./make.bat pkg
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: "fibratus-amd64.msi"
path: "./build/msi/fibratus-0.0.0-amd64.msi"
Expand All @@ -103,17 +106,17 @@ jobs:
runs-on: windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: ${{ env.GO_VERSION }}
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Build
shell: bash
run: |
export COMMIT=$(echo $GITHUB_SHA | cut -c1-8)
./make.bat
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: "fibratus-amd64-slim.exe"
path: "./cmd/fibratus/fibratus.exe"
Expand All @@ -126,15 +129,15 @@ jobs:
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Adjust pkg-config prefix
shell: bash
run: |
sed -i 's/C:\/Python37/C:\/hostedtoolcache\/windows\/Python\/3.7.9\/x64/' pkg-config/python-37.pc
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: ${{ env.GO_VERSION }}
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
Expand All @@ -148,7 +151,7 @@ jobs:
libtool
autoconf
- name: Cache yara
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: |
Expand Down Expand Up @@ -176,15 +179,15 @@ jobs:
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Adjust pkg-config prefix
shell: bash
run: |
sed -i 's/C:\/Python37/C:\/hostedtoolcache\/windows\/Python\/3.7.9\/x64/' pkg-config/python-37.pc
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: ${{ env.GO_VERSION }}
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
Expand All @@ -198,7 +201,7 @@ jobs:
libtool
autoconf
- name: Cache yara
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: |
Expand All @@ -216,7 +219,7 @@ jobs:
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VER
env:
GOLANGCI_LINT_VER: v1.50.1
GOLANGCI_LINT_VER: v1.55.1
- name: Lint
shell: bash
run: |
Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ on:
paths-ignore:
- "docs/**"

env:
GO_VERSION: 1.21.x

jobs:
build:
runs-on: windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: ${{ env.GO_VERSION }}
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Adjust pkg-config prefix
shell: bash
run: |
Expand All @@ -35,7 +38,7 @@ jobs:
libtool
autoconf
- name: Cache yara
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: |
Expand Down Expand Up @@ -79,15 +82,15 @@ jobs:
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Adjust pkg-config prefix
shell: bash
run: |
sed -i 's/C:\/Python37/C:\/hostedtoolcache\/windows\/Python\/3.7.9\/x64/' pkg-config/python-37.pc
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: ${{ env.GO_VERSION }}
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
Expand All @@ -101,7 +104,7 @@ jobs:
libtool
autoconf
- name: Cache yara
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: |
Expand Down Expand Up @@ -129,15 +132,15 @@ jobs:
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Adjust pkg-config prefix
shell: bash
run: |
sed -i 's/C:\/Python37/C:\/hostedtoolcache\/windows\/Python\/3.7.9\/x64/' pkg-config/python-37.pc
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: ${{ env.GO_VERSION }}
- name: Setup msys2
uses: msys2/setup-msys2@v2
with:
Expand All @@ -151,7 +154,7 @@ jobs:
libtool
autoconf
- name: Cache yara
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: |
Expand All @@ -169,7 +172,7 @@ jobs:
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin $GOLANGCI_LINT_VER
env:
GOLANGCI_LINT_VER: v1.50.1
GOLANGCI_LINT_VER: v1.55.1
- name: Lint
shell: bash
run: |
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ on:
tags:
- 'v*'

env:
GO_VERSION: 1.21.x

jobs:
build:
runs-on: windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: ${{ env.GO_VERSION }}
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Adjust pkg-config prefix
shell: bash
run: |
Expand All @@ -33,7 +36,7 @@ jobs:
libtool
autoconf
- name: Cache yara
uses: actions/cache@v2
uses: actions/cache@v4
id: cache
with:
path: |
Expand Down Expand Up @@ -91,7 +94,7 @@ jobs:
export PATH="/c/wix:$PATH"
export VERSION=${{ steps.get_version.outputs.VERSION }}
./make.bat pkg
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: fibratus-${{ steps.get_version.outputs.VERSION }}-amd64.msi
path: "./build/msi/fibratus-${{ steps.get_version.outputs.VERSION }}-amd64.msi"
Expand All @@ -100,11 +103,11 @@ jobs:
runs-on: windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: ${{ env.GO_VERSION }}
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get version
id: get_version
shell: bash
Expand Down Expand Up @@ -133,7 +136,7 @@ jobs:
export PATH="/c/wix:$PATH"
export VERSION=${{ steps.get_version.outputs.VERSION }}
./make.bat pkg-slim
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: fibratus-${{ steps.get_version.outputs.VERSION }}-slim-amd64.msi
path: "./build/msi/fibratus-${{ steps.get_version.outputs.VERSION }}-slim-amd64.msi"
Expand All @@ -145,17 +148,17 @@ jobs:
- build-slim
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get version
id: get_version
shell: bash
run: |
echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | cut -c2-)
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: fibratus-${{ steps.get_version.outputs.VERSION }}-amd64.msi
path: build
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: fibratus-${{ steps.get_version.outputs.VERSION }}-slim-amd64.msi
path: build
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ linters:
enable:
- bodyclose
- deadcode
- depguard
- errcheck
- goconst
- golint
Expand Down Expand Up @@ -45,3 +44,4 @@ issues:
linters:
- errcheck
- scopelint
- nolintlint
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ require (
www.velocidex.com/golang/go-ntfs v0.1.2-0.20230922133004-33eadbbaf1f2
)

go 1.19
go 1.21
2 changes: 1 addition & 1 deletion pkg/config/schema_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ var schema = `
"blacklist": {
"type": "object",
"properties": {
"events": {"type": "array", "items": [{"type": "string", "enum": ["CreateProcess", "CreateThread", "TerminateProcess", "TerminateThread", "OpenProcess", "OpenThread", "LoadImage", "UnloadImage", "CreateFile", "CloseFile", "ReadFile", "WriteFile", "DeleteFile", "RenameFile", "SetFileInformation", "EnumDirectory", "RegCreateKey", "RegOpenKey", "RegSetValue", "RegQueryValue", "RegQueryKey", "RegDeleteKey", "RegDeleteValue", "Accept", "Send", "Recv", "Connect", "Disconnect", "Reconnect", "Retransmit", "CreateHandle", "CloseHandle"]}]},
"events": {"type": "array", "items": [{"type": "string", "enum": ["CreateProcess", "CreateThread", "TerminateProcess", "TerminateThread", "OpenProcess", "OpenThread", "SetThreadContext", "LoadImage", "UnloadImage", "CreateFile", "CloseFile", "ReadFile", "WriteFile", "DeleteFile", "RenameFile", "SetFileInformation", "EnumDirectory", "RegCreateKey", "RegOpenKey", "RegSetValue", "RegQueryValue", "RegQueryKey", "RegDeleteKey", "RegDeleteValue", "Accept", "Send", "Recv", "Connect", "Disconnect", "Reconnect", "Retransmit", "CreateHandle", "CloseHandle"]}]},
"images": {"type": "array", "items": [{"type": "string", "minLength": 1}]}
},
"additionalProperties": false
Expand Down
Loading

0 comments on commit e378b05

Please sign in to comment.