mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
add FOSSA PR scan; update label requirements [sc-53201][sc-53409]
This commit is contained in:
19
.github/workflows/pr-license-scan.yaml
vendored
Normal file
19
.github/workflows/pr-license-scan.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: PR license scan
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
fossa-scan:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: "Run FOSSA Analyze"
|
||||
uses: fossas/fossa-action@main
|
||||
with:
|
||||
api-key: ${{ secrets.FOSSA_API_KEY }}
|
||||
- name: "Run FOSSA Test"
|
||||
uses: fossas/fossa-action@main
|
||||
with:
|
||||
api-key: ${{ secrets.FOSSA_API_KEY }}
|
||||
run-tests: true
|
||||
10
.github/workflows/require-pr-labels.yaml
vendored
10
.github/workflows/require-pr-labels.yaml
vendored
@@ -12,15 +12,11 @@ on:
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
require_pr_labels:
|
||||
require-pr-labels:
|
||||
uses: replicatedhq/reusable-workflows/.github/workflows/pr-enforce-labels.yaml@main
|
||||
require-bug-labels:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: mheap/github-action-required-labels@v2
|
||||
with:
|
||||
mode: exactly
|
||||
count: 1
|
||||
labels: "type::feature, type::bug, type::chore, type::tests, type::security, type::docs"
|
||||
|
||||
- uses: mheap/github-action-required-labels@v2
|
||||
if: ${{ github.event.label.name == 'type::bug' }}
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user