-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (39 loc) · 1.27 KB
/
osps-security-assessment.yml
File metadata and controls
46 lines (39 loc) · 1.27 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
38
39
40
41
42
43
44
45
46
name: OSPS Security Assessment
on:
schedule:
# Run weekly on Mondays at 9 AM UTC
- cron: "0 9 * * 1"
workflow_dispatch: # Allow manual triggering
jobs:
osps-assessment:
runs-on: ubuntu-latest
name: OSPS Security Assessment
permissions:
contents: read
id-token: write
security-events: write # Required for SARIF upload
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false
- uses: octo-sts/action@f603d3be9d8dd9871a265776e625a27b00effe05
id: octo-sts
with:
scope: privateerproj/privateer
identity: privateer
- name: Open Source Project Security Baseline Scanner
uses: revanite-io/osps-baseline-action@99e372da63a5587fad5ef9a1a3c6e465f7e9fc03
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
token: ${{ steps.octo-sts.outputs.token }}
catalog: "osps-baseline"
upload-sarif: "true"
- name: Upload Assessment Results
if: always()
uses: actions/upload-artifact@v7
with:
name: osps-assessment-results-${{ github.run_number }}
path: evaluation_results/
retention-days: 30