File tree 6 files changed +49
-95
lines changed
6 files changed +49
-95
lines changed Original file line number Diff line number Diff line change @@ -7,25 +7,8 @@ on: # yamllint disable-line rule:truthy
7
7
- " v*.*.*"
8
8
9
9
jobs :
10
- create-release :
11
- name : Create release
12
- runs-on : ubuntu-latest
13
- steps :
14
- - uses : actions/checkout@v4
15
- with :
16
- fetch-depth : 0
17
- - name : Get changelog
18
- id : changelog
19
- uses : simbo/changes-since-last-release-action@v1
20
- - name : Create release
21
- uses : softprops/action-gh-release@v2
22
- with :
23
- tag_name : ${{ github.ref }}
24
- name : ${{ github.ref_name }}
25
- token : ${{ secrets.GITHUB_TOKEN }}
26
- body : |
27
- # Changelog
28
-
29
- ${{ steps.changelog.outputs.log }}
30
- draft : false
31
- prerelease : false
10
+ github :
11
+ name : GitHub
12
+ uses : fabasoad/reusable-workflows/.github/workflows/wf-github-release.yml@main
13
+ with :
14
+ bump-tags : false
Original file line number Diff line number Diff line change @@ -7,45 +7,10 @@ on: # yamllint disable-line rule:truthy
7
7
branches :
8
8
- main
9
9
10
- defaults :
11
- run :
12
- shell : sh
13
-
14
10
jobs :
15
- code-scanning :
16
- name : Code scanning
17
- runs-on : ubuntu-latest
18
- steps :
19
- - name : Checkout ${{ github.repository }}
20
- uses : actions/checkout@v4
21
- - name : Initialize CodeQL
22
- uses : github/codeql-action/init@v3
23
- with :
24
- languages : " javascript"
25
- - name : Perform CodeQL Analysis
26
- id : codeql-analysis
27
- uses : github/codeql-action/analyze@v3
28
- - name : Upload to GHAS
29
- if : always()
30
- uses : github/codeql-action/upload-sarif@v3
31
- with :
32
- category : " code-scanning"
33
- sarif_file : " ${{ steps.codeql-analysis.outputs.sarif-output }}"
34
- directory-scanning :
35
- name : Directory scanning
36
- runs-on : ubuntu-latest
37
- steps :
38
- - name : Checkout ${{ github.repository }}
39
- uses : actions/checkout@v4
40
- - name : Scan current project
41
- id : scan-directory
42
- uses : anchore/scan-action@v3
43
- with :
44
- by-cve : " true"
45
- path : " ."
46
- - name : Upload to GHAS
47
- if : always()
48
- uses : github/codeql-action/upload-sarif@v3
49
- with :
50
- category : " directory-scanning"
51
- sarif_file : " ${{ steps.scan-directory.outputs.sarif }}"
11
+ sast :
12
+ name : SAST
13
+ permissions :
14
+ contents : read
15
+ security-events : write
16
+ uses : fabasoad/reusable-workflows/.github/workflows/wf-security-sast.yml@main
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Labels
3
+
4
+ on : # yamllint disable-line rule:truthy
5
+ push :
6
+ branches :
7
+ - main
8
+ workflow_dispatch : {}
9
+
10
+ jobs :
11
+ maintenance :
12
+ name : Maintenance
13
+ uses : fabasoad/reusable-workflows/.github/workflows/wf-sync-labels.yml@main
Original file line number Diff line number Diff line change 1
1
---
2
- name : Update license
2
+ name : License
3
3
4
4
on : # yamllint disable-line rule:truthy
5
5
schedule :
6
6
- cron : " 0 5 1 1 *"
7
7
8
8
jobs :
9
- run :
10
- runs-on : ubuntu-latest
11
- steps :
12
- - name : Checkout ${{ github.repository }}
13
- uses : actions/checkout@v4
14
- with :
15
- fetch-depth : 0
16
- - name : Update LICENSE file
17
- uses : FantasticFiasco/action-update-license-year@v3
18
- with :
19
- token : ${{ secrets.GITHUB_TOKEN }}
20
- assignees : ${{ github.repository_owner }}
21
- labels : enhancement
22
- prTitle : Update license copyright year to {{currentYear}}
23
- prBody : |
24
- ## Changelog
25
-
26
- - Update license copyright year to {{currentYear}}
27
-
28
- ---
29
-
30
- Powered by [FantasticFiasco/action-update-license-year](https://github.com/FantasticFiasco/action-update-license-year)
9
+ maintenance :
10
+ name : Maintenance
11
+ uses : fabasoad/reusable-workflows/.github/workflows/wf-update-license.yml@main
Original file line number Diff line number Diff line change 9
9
hooks :
10
10
- id : detect-secrets
11
11
- repo : https://github.com/gitleaks/gitleaks
12
- rev : v8.18.2
12
+ rev : v8.18.4
13
13
hooks :
14
14
- id : gitleaks
15
+ - repo : https://github.com/fabasoad/pre-commit-grype
16
+ rev : v0.6.0
17
+ hooks :
18
+ - id : grype-dir
19
+ args :
20
+ - --grype-args=--by-cve --fail-on=low
21
+ - --hook-args=--log-level debug
22
+ stages : ["push"]
15
23
# Markdown
16
24
- repo : https://github.com/igorshubovych/markdownlint-cli
17
- rev : v0.40 .0
25
+ rev : v0.41 .0
18
26
hooks :
19
27
- id : markdownlint-fix
20
28
stages : ["commit"]
21
29
# Shell
22
- - repo : https://github.com/shellcheck-py/shellcheck-py
23
- rev : v0.10.0 .1
30
+ - repo : https://github.com/openstack/bashate
31
+ rev : 2.1 .1
24
32
hooks :
25
- - id : shellcheck
26
- stages : ["push"]
33
+ - id : bashate
34
+ args : ["-i", "E003,E006"]
35
+ stages : ["commit"]
27
36
# Yaml
28
37
- repo : https://github.com/adrienverge/yamllint
29
38
rev : v1.35.1
@@ -32,10 +41,11 @@ repos:
32
41
stages : ["push"]
33
42
# GitHub Actions
34
43
- repo : https://github.com/rhysd/actionlint
35
- rev : v1.7.0
44
+ rev : v1.7.1
36
45
hooks :
37
46
- id : actionlint
38
- stages : ["push"]
47
+ args : ["-pyflakes="]
48
+ stages : ["commit"]
39
49
# Other
40
50
- repo : https://github.com/pre-commit/mirrors-prettier
41
51
rev : v3.1.0
46
56
rev : v4.6.0
47
57
hooks :
48
58
- id : check-executables-have-shebangs
59
+ stages : ["commit"]
49
60
- id : check-shebang-scripts-are-executable
61
+ stages : ["commit"]
50
62
- id : check-merge-conflict
51
63
- id : check-json
52
64
stages : ["push"]
Original file line number Diff line number Diff line change 54
54
rev: <rev>
55
55
hooks:
56
56
- id: snyk-iac
57
- args:["<folder >","--severity-threshold=<severity-level>"]
57
+ args: ["<dir >", "--severity-threshold=<severity-level>"]
58
58
` ` `
59
59
60
60
Where :
You can’t perform that action at this time.
0 commit comments