Sha256: e49766047e2dd15064b8dc99d9aa1428f969bfb6a7f6aaacc3305475b988503e

Contents?: true

Size: 910 Bytes

Versions: 10

Compression:

Stored size: 910 Bytes

Contents

# GitHub Actions

GitHub Actions is a good way to run Mihari searches continuously.

The following is an example of a GitHub Actions workflow to run Mihari.

```yaml
name: Mihari searches

on:
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install dependencies
        run: sudo apt-get -yqq install sqlite3 libsqlite3-dev
      - name: Set up Ruby 3.2
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: "3.2"
          bundler-cache: true
      - name: Run Mihari
        run: |
          mihari search /path/to/rule.yml
```

!!! tip

    You need to install `libpq-dev` for PostgreSQL, `libmysqlclient-dev` for MySQL.

This example assumes that you have `Gemfile` in your repository.

```ruby
source "https://rubygems.org"

gem "pg"     # if you use PostgresSQL
gem "mysql2" # if you use MySQL

gem "mihari"
```

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mihari-5.7.0 docs/github_actions.md
mihari-5.6.2 docs/github_actions.md
mihari-5.6.1 docs/github_actions.md
mihari-5.6.0 docs/github_actions.md
mihari-5.5.0 docs/github_actions.md
mihari-5.4.9 docs/github_actions.md
mihari-5.4.8 docs/github_actions.md
mihari-5.4.7 docs/github_actions.md
mihari-5.4.6 docs/github_actions.md
mihari-5.4.5 docs/github_actions.md