Allow ivanti/CVE-2021-44529
to use either Command or PHP payloads.
#32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [ push, pull_request ] | |
jobs: | |
# rubocop linting | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0 | |
- name: Install dependencies | |
run: bundle install --jobs 4 --retry 3 | |
- name: Run rubocop | |
run: bundle exec rubocop --parallel | |
# exploits linting | |
lint_exploits: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.0 | |
- name: Install dependencies | |
run: bundle install --jobs 4 --retry 3 | |
- name: Lint exploits | |
run: 'bundle exec rake lint:exploits' | |
# test suite | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: | |
- '3.0' | |
- '3.1' | |
- '3.2' | |
- '3.3' | |
- jruby | |
- truffleruby | |
name: Ruby ${{ matrix.ruby }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Install dependencies | |
run: bundle install --jobs 4 --retry 3 | |
- name: Run tests | |
run: bundle exec rake test | |