Skip to content

Commit f6e2daa

Browse files
committed
Merge v15 into dev/v15
2 parents d6a1f49 + 5b4a656 commit f6e2daa

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+

0 commit comments

Comments
 (0)