-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Expand file tree
/
Copy pathsecurity-practice-scheduled.yml
More file actions
60 lines (52 loc) · 2.36 KB
/
Copy pathsecurity-practice-scheduled.yml
File metadata and controls
60 lines (52 loc) · 2.36 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
## %CopyrightBegin%
##
## SPDX-License-Identifier: Apache-2.0
##
## Copyright Ericsson AB 2026. All Rights Reserved.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
## %CopyrightEnd%
## Scheduled job alert to update security.txt and OpenChain Security and License compliance
## The OpenChain License compliance and Security need to be reviewed every 18 months.
name: Annual Security Review Practices
on:
schedule:
- cron: 0 9 25 10 *
permissions:
contents: read
jobs:
review-security-practices:
if: github.event_name == 'schedule' && github.repository == 'erlang/otp'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Create GH Issue to Review Security Practices
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }} # in testing cases, this is your fork, e.g., kikofernandez/otp
run: |
CURRENT_YEAR=$(date +%Y)
gh issue create \
--repo ${{ github.repository }} \
-- title "Annual Security Review" \
--label "team:VM,team:PS" \
--body "## Annual Security Review
Time for the annual security review.
### Checklist
- [ ] Review and update https://www.erlang.org/.well-known/security.txt in repo https://github.com/erlang/erlang-org
- [ ] Check practices of the OpenChain License Compliance (instructions in ISO/IEC 5230 Self-Certification) and update internal and external documents, if necessary
- [ ] Check practices of the OpenChain Security Compliance (instructions in ISO/IEC 18974 Self-Certification) and update internal and external documents, if necessary (we may not have yet implemented this ISO...)
**Scheduled for ${CURRENT_YEAR}
This issue was created automatically, and will be created again as a yearly reminder to check security practices."