Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSCE-306 feat: replaces update_from_upstream bash with trestlebot action #73

Merged
merged 2 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions .github/workflows/update-profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,14 @@ jobs:
with:
token: ${{ steps.get_installation_token.outputs.token }}
- name: Update from upstream repo
run: bash ./scripts/update-from-upstream.sh -b "main" -r "https://github.com/RedHatProductSecurity/oscal-profiles" -p "*.json" -i catalogs -i profiles
- uses: peter-evans/[email protected]
uses: RedHatProductSecurity/trestle-bot/actions/[email protected]
with:
base: main
branch: autoupdate-${{ github.run_id }}
delete-branch: true
commit-message: "Update vendored OSCAL content"
title: "Update vendored OSCAL content"
body: |
This PR updates content from https://github.com/RedHatProductSecurity/oscal-profiles.
"Automatically generated by the [update-profiles](.github/workflows/update-profiles.yml) workflow."
add-paths: |
catalogs/
profiles/
token: ${{ steps.get_installation_token.outputs.token }}
committer: trestle-bot[bot] <136850459+trestle-bot[bot]@users.noreply.github.com>
branch: "sync-upstream-${{ github.run_id }}"
target_branch: "main"
commit_message: "Updates content from oscal-profiles repository [skip ci]"
pull_request_title: "Updates content from oscal-profiles repository"
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 }}
sources: |
https://github.com/RedHatProductSecurity/oscal-profiles@main
99 changes: 0 additions & 99 deletions scripts/update-from-upstream.sh

This file was deleted.