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

T6674: Actions add bullfrog secure to trigger build packages #41

Merged
merged 1 commit into from
Sep 13, 2024
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
54 changes: 33 additions & 21 deletions .github/workflows/trigger-rebuild-repo-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,45 @@ name: Workflow to trigger a package build

on:
workflow_call:
inputs:
branch:
required: true
type: string
default: current
package_name:
required: true
type: string
REF:
required: true
type: string
default: main
secrets:
REMOTE_OWNER:
required: true
REMOTE_REUSE_REPO:
required: true
GPG_KEY_ID:
required: true
PAT:
required: true
inputs:
branch:
description: 'PR target branch'
required: true
type: string
default: current
package_name:
description: 'PR package name'
required: true
type: string
REF:
required: true
type: string
default: main
secrets:
REMOTE_OWNER:
description: 'Remote repo owner'
required: true
REMOTE_REUSE_REPO:
description: 'Remote reusable repo name'
required: true
GPG_KEY_ID:
description: 'DEB repo GPG key ID'
required: true
PAT:
description: 'Personal Access Token'
required: true

jobs:
trigger_package_build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Bullfrog Secure Runner
uses: bullfrogsec/bullfrog@v0
with:
egress-policy: audit

- name: Trigger rebuild for ${{ inputs.package_name }}
run: |
curl -L \
Expand Down