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

Add PR Security pipeline workflow #30

Merged
merged 1 commit into from
Feb 21, 2023
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
32 changes: 32 additions & 0 deletions .github/workflows/pr-security.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
# onemedical/<repo>/.github/workflows/pr-security.yaml
#
# This is the workflow for distribution to repositories across the organization.
# It will call the reusable PR security workflow, and run scans against each PR.
name: PR Security


# yamllint disable-line rule:truthy
on:
pull_request:
branches: [main, master]


permissions:
# Required for workflows in private repositories.
contents: read

# Required for SARIF results upload to GHAS.
security-events: write
actions: read


jobs:
# Run the reusable workflow.
run-workflow:
name: Run Workflow
# yamllint disable-line rule:line-length
uses: onemedical/github-reusable-workflows/.github/workflows/reusable-pr-security.yaml@main
# The detect-secrets tool is used in some repositories, and generates false
# positives like the one below. Add comment to ignore.
secrets: inherit # pragma: allowlist secret