forked from cloudnative-pg/cloudnative-pg
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1.09 KB
/
Copy pathosps_security_assessment.yml
File metadata and controls
37 lines (30 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: OSPS Security Assessment
on:
schedule:
- cron: "0 9 * * 1" # Weekly on Mondays at 9 AM UTC
workflow_dispatch: # Allow manual triggering
permissions: {}
jobs:
osps-assessment:
runs-on: ubuntu-24.04
permissions:
contents: read
security-events: write # Required for SARIF upload
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Open Source Project Security Baseline Scanner
uses: revanite-io/osps-baseline-action@3bf988fa8e4b59568dcfac138a1854df87c15aff # v1.3.2
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
token: ${{ secrets.PVTR_OSPS_TOKEN }}
catalog: "osps-baseline"
upload-sarif: "true"
- name: Upload Assessment Results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: osps-assessment-results-${{ github.run_number }}
path: evaluation_results/
retention-days: 30