mirror of
https://github.com/bitwarden/server
synced 2025-12-24 12:13:17 +00:00
32 lines
632 B
YAML
32 lines
632 B
YAML
name: Build on PR Target
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, synchronize, reopened]
|
|
branches:
|
|
- "main"
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
check-run:
|
|
name: Check PR run
|
|
uses: bitwarden/gh-actions/.github/workflows/check-run.yml@main
|
|
permissions:
|
|
contents: read
|
|
|
|
run-workflow:
|
|
name: Run Build on PR Target
|
|
needs: check-run
|
|
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
|
|
uses: ./.github/workflows/build.yml
|
|
secrets: inherit
|
|
|
|
permissions:
|
|
contents: read
|
|
actions: read
|
|
id-token: write
|
|
security-events: write
|