Skip to content

Commit

Permalink
refactor: updates validate.yml for trestlebot migration from check_only
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed May 2, 2024
1 parent 173157d commit ae668c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
name: Create profile
runs-on: ubuntu-latest
container:
image: quay.io/continuouscompliance/trestle-bot:v0.8.0
image: quay.io/continuouscompliance/trestle-bot:v0.9.0
steps:
- name: Generate app token
uses: tibdex/[email protected]
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@ jobs:
- name: Clone
uses: actions/checkout@v4
- name: Check profile
id: check-profile
id: check
uses: RedHatProductSecurity/trestle-bot/actions/[email protected]
with:
markdown_path: "markdown/profiles"
oscal_model: "profile"
check_only: true
skip_items: "fedramp_rev5_high"
dry_run: true
- name: Fail
if: ${{ steps.check.outputs.changes == 'true' }}
uses: actions/github-script@v7
with:
script: |
core.setFailed('Changes detected. Manual intervention may be required.')
call-autofix:
needs: [test]
Expand Down

0 comments on commit ae668c8

Please sign in to comment.