-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove the vendor directory and references to it
Automation libraries have been moved to trestlebot for reuse. All compdef specific libraries are in the scripts/ directory. The vendor directory automation is no longer needed. Signed-off-by: Jennifer Power <[email protected]>
- Loading branch information
Showing
46 changed files
with
59 additions
and
1,925 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,33 @@ jobs: | |
update: | ||
name: Run update | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- name: Generate app token | ||
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a | ||
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 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
token: ${{ steps.get_installation_token.outputs.token }} | ||
- name: Update from upstream repo | ||
run: bash ./vendor/scripts/update-from-upstream.sh -b "main" -r "https://github.com/RedHatProductSecurity/oscal-profiles" -a "$ACTOR" -p "*.json" -i catalogs -i profiles | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ACTOR: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>" | ||
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] | ||
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> |
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.