Skip to content

Commit c941759

Browse files
committed
Change to notify privately
1 parent c65eed6 commit c941759

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/action_publish-images-security-updates.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,20 @@ jobs:
110110
runs-on: ubuntu-24.04
111111
if: always()
112112
steps:
113-
- name: Notify on success
113+
- name: Notify maintainers privately
114114
if: needs.build-security-updates.result == 'success'
115115
uses: actions/github-script@v7
116116
with:
117117
script: |
118-
github.rest.issues.create({
118+
await github.rest.securityAdvisories.createPrivateVulnerabilityReport({
119119
owner: context.repo.owner,
120120
repo: context.repo.name,
121-
title: '🔒 Security updates applied',
122-
body: 'Security updates were automatically applied to the latest images.'
123-
})
121+
title: 'Automated Security Updates Applied',
122+
description: `Security updates were automatically applied.\n\nAction Run: ${context.serverUrl}/${context.repo.owner}/${context.repo.name}/actions/runs/${context.runId}`,
123+
state: 'closed',
124+
severity: 'low',
125+
identifiers: [{
126+
type: 'GHSA',
127+
value: `GHSA-auto-${context.runId}`
128+
}]
129+
});

0 commit comments

Comments
 (0)