Skip to content

Commit

Permalink
Change from docker to composite action to support all os workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ErebusZ committed Aug 27, 2024
1 parent 76a98c1 commit 7bd4239
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
10 changes: 0 additions & 10 deletions Dockerfile

This file was deleted.

29 changes: 27 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,33 @@ outputs:
status:
description: status of scan.
runs:
using: 'docker'
image: 'Dockerfile'
using: "composite"
steps:
- name: Set up Python3.11
uses: actions/[email protected]
with:
python-version: 3.11

- name: Install Ostorlab
run: |
python -m pip install --upgrade pip
python -m pip install ostorlab
shell: bash

- name: Run Scan
run: |
ostorlab --api-key="$INPUT_OSTORLAB_API_KEY" ci-scan run --log-flavor=github --title="$INPUT_SCAN_TITLE" --scan-profile="$INPUT_SCAN_PROFILE" --break-on-risk-rating="$INPUT_BREAK_ON_RISK_RATING" --max-wait-minutes="$INPUT_MAX_WAIT_MINUTES" $INPUT_EXTRA $INPUT_ASSET_TYPE $INPUT_TARGET
shell: bash
env:
INPUT_OSTORLAB_API_KEY: ${{ inputs.ostorlab_api_key }}
INPUT_SCAN_TITLE: ${{ inputs.scan_title }}
INPUT_SCAN_PROFILE: ${{ inputs.scan_profile }}
INPUT_BREAK_ON_RISK_RATING: ${{ inputs.break_on_risk_rating }}
INPUT_MAX_WAIT_MINUTES: ${{ inputs.max_wait_minutes }}
INPUT_EXTRA: ${{ inputs.extra }}
INPUT_ASSET_TYPE: ${{ inputs.asset_type }}
INPUT_TARGET: ${{ inputs.target }}

branding:
icon: "shield"
color: "blue"

0 comments on commit 7bd4239

Please sign in to comment.