Skip to content

Merge pull request #36 from RedHatProductSecurity/autoupdate-6126807394 #9

Merge pull request #36 from RedHatProductSecurity/autoupdate-6126807394

Merge pull request #36 from RedHatProductSecurity/autoupdate-6126807394 #9

name: Regenerate profile content
on:
push:
branches:
- main
paths:
- 'profiles/**'
- 'catalogs/**'
jobs:
update:
name: Regenerate content
runs-on: ubuntu-latest
steps:
- name: Generate app token
uses: tibdex/github-app-token@v1
id: get_installation_token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
permissions: >-
{"contents": "write", "pull_requests": "write"}
- name: Clone
uses: actions/checkout@v3
with:
token: ${{ steps.get_installation_token.outputs.token }}
- name: Regenerate profiles
id: regenerate
uses: RedHatProductSecurity/[email protected]
with:
markdown_path: "markdown/profiles"
oscal_model: "profile"
file_pattern: "markdown/*"
branch: "autoupdate-${{ github.run_id }}"
target_branch: "main"
skip_assemble: true
skip_items: "fedramp_rev5_high"
commit_user_name: "trestle-bot[bot]"
commit_user_email: "136850459+trestle-bot[bot]@users.noreply.github.com"
github_token: ${{ steps.get_installation_token.outputs.token }}