Skip to content
Merged
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
29 changes: 23 additions & 6 deletions .github/workflows/generate-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ on:

permissions:
contents: write
pull-requests: write

concurrency:
group: artifacts-${{ github.ref }}
Expand Down Expand Up @@ -80,10 +81,26 @@ jobs:
} > SBOM.md
rm metadata.json

- name: Commit artifacts if changed
uses: stefanzweifel/git-auto-commit-action@v5
# Open a PR instead of pushing directly. The org-level Default Branch
# Protection ruleset requires PRs to the default branch, so the previous
# git-auto-commit-action push was rejected (GH006). Tracked in issue #14.
- name: Open PR with regenerated artifacts
uses: peter-evans/create-pull-request@v6
with:
commit_message: "chore: regenerate SBOM and STRUCTURE [skip ci]"
file_pattern: "SBOM.md STRUCTURE.md"
commit_user_name: "github-actions[bot]"
commit_user_email: "41898282+github-actions[bot]@users.noreply.github.com"
branch: chore/regenerate-artifacts
base: ${{ github.ref_name }}
delete-branch: true
add-paths: |
SBOM.md
STRUCTURE.md
commit-message: "chore: regenerate SBOM and STRUCTURE"
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
title: "chore: regenerate SBOM and STRUCTURE"
body: |
Auto-generated regeneration of `SBOM.md` and `STRUCTURE.md` from commit ${{ github.sha }}.

Triggered by: `${{ github.event_name }}` on `${{ github.ref_name }}`.
labels: |
type:enhancement
category:improvement
Loading