Merge pull request #36 from RedHatProductSecurity/autoupdate-6126807394 #9
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: 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 }} |