Skip to content

Commit

Permalink
Remove update tm workflow, use same code to test action
Browse files Browse the repository at this point in the history
  • Loading branch information
pritchyspritch committed May 15, 2024
1 parent f91192c commit 3dfe74d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 48 deletions.
41 changes: 40 additions & 1 deletion .github/workflows/build-and-push-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
workflow_call:

jobs:

build-and-push-image:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -44,4 +45,42 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

test-action:
runs-on: ubuntu-latest
needs: build-and-push-image

permissions:
contents: read
packages: read

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Run threagile
id: threagile-test-optional-args
uses: pritchyspritch/run-threagile-action@v2
with:
optional_args: '--help'

- name: Run threagile
id: threagile
uses: pritchyspritch/run-threagile-action@v2
with:
model_file: 'example-models/threagile-SSPHP-model.yaml'
output_dir: 'test/location'

# will fail as Azure data ingestion hasn't been automated yet
- name: Run threagile
id: dfe-threagile
uses: pritchyspritch/run-threagile-action@v2
with:
dfe_threagile: 'true'

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: threat-model-output
path: test/location
47 changes: 0 additions & 47 deletions .github/workflows/update-threat-model.yaml

This file was deleted.

0 comments on commit 3dfe74d

Please sign in to comment.