Skip to content

Commit 0b2827b

Browse files
Merge d2291ba into 3afcca3
2 parents 3afcca3 + d2291ba commit 0b2827b

18 files changed

+8006
-13923
lines changed

.checkov.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See: https://www.checkov.io/1.Welcome/Quick%20Start.html
2+
3+
compact: true
4+
quiet: true
5+
skip-path:
6+
- coverage
7+
- node_modules

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ insert_final_newline = true
88
trim_trailing_whitespace = true
99
end_of_line = lf
1010
max_line_length = 160
11+
12+
[{README.md,.github/{workflows,ISSUE_TEMPLATE}/*.yaml}]
13+
max_line_length = 200

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 🐞 Bug
2-
description: Something is not working as indended.
2+
description: Something is not working as indented.
33
labels: [🐞 bug]
44
body:
55
- type: markdown

.github/workflows/ci.yml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
contents: read
1515
steps:
1616
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
with:
18+
persist-credentials: 'false'
1719
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
1820
with:
1921
node-version-file: package.json
@@ -33,6 +35,8 @@ jobs:
3335
RUNNER_DEBUG: 1
3436
steps:
3537
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
38+
with:
39+
persist-credentials: 'false'
3640
- uses: ./
3741
with:
3842
version: 'latest'
@@ -59,23 +63,28 @@ jobs:
5963
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6064
with:
6165
fetch-depth: 0
66+
persist-credentials: 'false'
6267

6368
- name: Lint Code Base
6469
uses: super-linter/super-linter/slim@61abc07d755095a68f4987d1c2c3d1d64408f1f9 # v8.5.0
6570
env:
6671
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true
73+
ENABLE_GITHUB_PULL_REQUEST_SUMMARY_COMMENT: false
74+
SAVE_SUPER_LINTER_SUMMARY: true
6775
MULTI_STATUS: false
6876
LINTER_RULES_PATH: .
77+
CHECKOV_FILE_NAME: .checkov.yml
78+
DEFAULT_BRANCH: main
79+
FILTER_REGEX_EXCLUDE: dist/**/*
6980
VALIDATE_ALL_CODEBASE: true
70-
VALIDATE_BASH: true
71-
VALIDATE_BASH_EXEC: true
72-
VALIDATE_ENV: true
73-
VALIDATE_GITHUB_ACTIONS: true
74-
VALIDATE_HTML: true
75-
VALIDATE_NATURAL_LANGUAGE: true
76-
VALIDATE_SHELL_SHFMT: true
77-
VALIDATE_XML: true
78-
VALIDATE_YAML: true
81+
VALIDATE_BIOME_FORMAT: false
82+
VALIDATE_BIOME_LINT: false
83+
VALIDATE_JAVASCRIPT_ES: false
84+
VALIDATE_JSCPD: false
85+
VALIDATE_TYPESCRIPT_ES: false
86+
VALIDATE_JSON: false
87+
VALIDATE_MARKDOWN: false
7988

8089
release:
8190
if: github.repository_owner == 'jkroepke' && github.ref_name == 'main'
@@ -97,6 +106,7 @@ jobs:
97106
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
98107
with:
99108
fetch-depth: 0
109+
persist-credentials: 'false'
100110
- name: Setup Node.js
101111
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
102112
with:

.github/workflows/pr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
52+
with:
53+
persist-credentials: 'false'
5254
- name: check
5355
run: |
5456
PR_TITLE_PREFIX=$(echo "$PR_TITLE" | cut -d':' -f1)

.github/workflows/release-changelog.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
contents: write
1515
steps:
1616
- name: Update notes
17+
#language=bash
1718
run: |
18-
TAG="${{ github.ref_name }}"
19+
TAG="${GITHUB_REF_NAME}"
1920
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
20-
NEW_NOTES=$(gh api --method POST -H "Accept: application/vnd.github+json" /repos/${{ github.repository }}/releases/generate-notes -f tag_name=${{ github.ref_name }} | jq -r '.body')
21-
RELEASE_ID=$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository }}/releases/tags/${{ github.ref_name }} | jq -r '.id')
22-
gh api --method PATCH -H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/releases/$RELEASE_ID" -f "body=$NEW_NOTES"
21+
NEW_NOTES=$(gh api --method POST -H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/releases/generate-notes" -f "tag_name=${GITHUB_REF_NAME}" | jq -r '.body')
22+
RELEASE_ID=$(gh api -H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/releases/tags/${GITHUB_REF_NAME}" | jq -r '.id')
23+
gh api --method PATCH -H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/releases/${RELEASE_ID}" -f "body=$NEW_NOTES"
2324
fi
2425
env:
2526
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
RELEASE_TAG: ${{ github.event.release.tag_name }}

.github/workflows/renovate-custom-hooks.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: renovate hooks
22

3+
permissions: {}
4+
35
on:
46
pull_request:
57
branches:
@@ -13,11 +15,14 @@ jobs:
1315
renovate-post-run:
1416
name: Renovate Post Upgrade Hook
1517
runs-on: ubuntu-latest
16-
if: github.repository_owner == 'jkroepke' && (github.actor == 'renovate[bot]' || github.actor == 'mend[bot]')
18+
permissions:
19+
contents: read
20+
if: github.repository_owner == 'jkroepke' && github.event.pull_request.user.login == 'renovate[bot]'
1721
steps:
1822
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1923
with:
2024
fetch-depth: 0
25+
persist-credentials: false
2126

2227
# Using a GitHub App token, because GitHub Actions doesn't run on commits from github-actions bot
2328
# Used App:
@@ -104,8 +109,8 @@ jobs:
104109
105110
# Call GitHub API
106111
curl https://api.github.com/graphql -f \
107-
-sSf -H "Authorization: Bearer $GITHUB_TOKEN" \
108-
--data "@$JSON_PAYLOAD_FILE"
112+
-sSf -H "Authorization: Bearer $GITHUB_TOKEN" \
113+
--data "@$JSON_PAYLOAD_FILE"
109114
110115
# Clean up temporary files
111116
rm "$FILE_CHANGES_JSON_FILE" "$JSON_PAYLOAD_FILE"

.github/workflows/update-major-tag.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
16-
- run: |
17-
TAG="${{ github.ref_name }}"
16+
with:
17+
persist-credentials: 'false'
18+
19+
- name: Push major tag
20+
#language=bash
21+
run: |
22+
TAG="${GITHUB_REF_NAME}"
1823
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
19-
TAG="${{ github.ref_name }}"
2024
TAG="${TAG%%.*}"
2125
git tag -f "${TAG}"
2226
git push --tags --force

0 commit comments

Comments
 (0)