File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : 📄 Update Security Policy
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ dry-run :
6+ description : " Dry run: Run the workflow without making any changes"
7+ required : false
8+ default : false
9+ type : boolean
10+ schedule :
11+ - cron : ' 0 23,11 * * *'
12+ jobs :
13+ get-refs :
14+ runs-on : ubuntu-latest
15+ outputs :
16+ refs : ${{ steps.get-refs.outputs.refs }}
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 0
22+ - name : Get refs
23+ id : get-refs
24+ shell : pwsh
25+ run : |
26+ $refs = git branch -r --list 'origin/v*' | ForEach-Object { $_.Trim() -replace 'origin/', '' } | Sort-Object -Unique | ConvertTo-Json -Compress
27+ echo "refs=$refs" >> $env:GITHUB_OUTPUT
28+ update :
29+ runs-on : ubuntu-latest
30+ needs : get-refs
31+ env :
32+ DRY_RUN : ${{ github.event.inputs.dry-run }}
33+ PROJECT_NAME : Umbraco.Community.SimpleDashboards
34+ SECURITY_POLICY_FILEPATH : ./SECURITY.md
35+ strategy :
36+ max-parallel : 1
37+ matrix :
38+ ref : ${{fromJson(needs.get-refs.outputs.refs) }}
39+ steps :
40+ - name : Update Security Policy
41+ uses : jcdcdev/jcdcdev.Umbraco.GitHub.PackageSecurity@main
42+ with :
43+ dry-run : ${{ env.DRY_RUN }}
44+ project-name : ${{ env.PROJECT_NAME }}
45+ security-policy-filepath : ${{ env.SECURITY_POLICY_FILEPATH }}
46+ security-policy-api-key : ${{ secrets.SECURITY_POLICY_API_KEY }}
47+ branch : ${{ matrix.ref }}
48+
You can’t perform that action at this time.
0 commit comments