generated from credfeto/cs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.37 KB
/
todos.yml
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
name: "Analysis: TODO"
on:
push:
branches:
- main
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
permissions:
issues: write
repository-projects: read
contents: read
jobs:
todos:
runs-on: ubuntu-latest
steps:
- name: "Harden Security"
uses: step-security/[email protected]
with:
egress-policy: block
disable-sudo: true
allowed-endpoints: >
api.github.com:443
api.osv.dev:443
api.securityscorecards.dev:443
codeload.github.com:443
fulcio.sigstore.dev:443
github.com:443
oss-fuzz-build-logs.storage.googleapis.com:443
rekor.sigstore.dev:443
tuf-repo-cdn.sigstore.dev:443
www.bestpractices.dev:443
- name: "Checkout code"
uses: actions/[email protected]
with:
fetch-depth: 0
fetch-tags: true
persist-credentials: false
- name: "Seach for TODOS"
uses: derjuulsn/todo-issue@main
with:
excludePattern: '(node_modules/)'
autoAssign: 'true'
keywords: 'TODO'
blobLines: 7
blobLinesBefore: 2
caseSensitive: false
label: true
reopenClosed: true
env:
GITHUB_TOKEN: ${{secrets.SOURCE_PUSH_TOKEN}}