Add ability to create SBOM #1927
Workflow file for this run
This file contains hidden or 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
# Derived from https://github.com/OctopusDeploy/OctopusDeploy/blob/main/.github/workflows/portal-update-pull-request-automation.yml | |
name: "Approve Renovate Pull Request" | |
on: | |
pull_request: | |
branches: [main] | |
# Increase the access for the GITHUB_TOKEN | |
permissions: | |
# This Allows the GITHUB_TOKEN to approve pull requests | |
pull-requests: write | |
# This Allows the GITHUB_TOKEN to auto merge pull requests | |
contents: write | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
# By default, GitHub Actions workflows triggered by renovate get a GITHUB_TOKEN with read-only permissions. | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
jobs: | |
approve_renovate_pull_requests: | |
runs-on: ubuntu-latest | |
name: Approve renovate pull request | |
if: ${{ (github.actor == 'Octobob') && (contains(github.head_ref, 'renovate')) }} | |
steps: | |
- name: Approve a renovate created PR | |
run: gh pr review --approve "$PR_URL" |