detect-secrets 0.0.0-development

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3
+ "changelog": ["@changesets/changelog-github", { "repo": "lirantal/detect-secrets" }],
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "public",
8
+ "baseBranch": "master",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": []
11
+ }
@@ -0,0 +1,9 @@
1
+ default: true
2
+
3
+ # Line length - https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013---line-length
4
+ MD013:
5
+ code_blocks: false
6
+ tables: false
7
+
8
+ # Do not enforce line length in markdown files
9
+ line_length: false
@@ -0,0 +1,73 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ education, socio-economic status, nationality, personal appearance, race,
10
+ religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ - Using welcoming and inclusive language
18
+ - Being respectful of differing viewpoints and experiences
19
+ - Gracefully accepting constructive criticism
20
+ - Focusing on what is best for the community
21
+ - Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ - The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ - Trolling, insulting/derogatory comments, and personal or political attacks
28
+ - Public or private harassment
29
+ - Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ - Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at liran.tal@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct/
72
+
73
+ [homepage]: https://www.contributor-covenant.org
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: "\U0001F41B Bug report"
3
+ about: Create a bug report
4
+ ---
5
+
6
+ <!--- Provide a general summary of the issue in the Title above -->
7
+
8
+ ## Expected Behavior
9
+
10
+ <!--- If you're describing a bug, tell us what should happen -->
11
+ <!--- If you're suggesting a change/improvement, tell us how it should work -->
12
+
13
+ ## Current Behavior
14
+
15
+ <!--- If describing a bug, tell us what happens instead of the expected behavior -->
16
+ <!--- If suggesting a change/improvement, explain the difference from current behavior -->
17
+
18
+ ## Possible Solution
19
+
20
+ <!--- Not obligatory, but suggest a fix/reason for the bug, -->
21
+ <!--- or ideas how to implement the addition or change -->
22
+
23
+ ## Steps to Reproduce (for bugs)
24
+
25
+ <!--- Provide a link to a live example, or an unambiguous set of steps to -->
26
+ <!--- reproduce this bug. Include code to reproduce, if relevant -->
27
+
28
+ 1.
29
+ 2.
30
+ 3.
31
+ 4.
32
+
33
+ ## Context
34
+
35
+ <!--- How has this issue affected you? What are you trying to accomplish? -->
36
+ <!--- Providing context helps us come up with a solution that is most useful in the real world -->
37
+
38
+ ## Your Environment
39
+
40
+ <!--- Include as many relevant details about the environment you experienced the bug in -->
41
+
42
+ - Library Version used:
43
+ - Node.js version (e.g. Node.js 5.4):
44
+ - Operating System and version (desktop or mobile):
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: "\U0001F680 Feature request"
3
+ about: Suggest an idea for this project
4
+ ---
5
+
6
+ <!--
7
+ Thank you for suggesting an idea to make this project better!
8
+
9
+ Please fill in as much of the template below as you're able.
10
+ -->
11
+
12
+ **Is your feature request related to a problem? Please describe.**
13
+ Please describe the problem you are trying to solve.
14
+
15
+ **Describe the solution you'd like**
16
+ Please describe the desired behavior.
17
+
18
+ **Describe alternatives you've considered**
19
+ Please describe alternative solutions or features you have considered.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: '⁉️ Need help?'
3
+ about: Please describe the problem.
4
+ ---
5
+
6
+ <!--
7
+ Describe the problem providing as much details as possible
8
+ -->
@@ -0,0 +1,11 @@
1
+ <!--
2
+ Thank you for reporting an issue.
3
+
4
+ Please provide as much details are you're able to.
5
+ -->
6
+
7
+ - **Library Version**:
8
+ - **OS**:
9
+ - **Node.js Version**:
10
+
11
+ <!-- Enter your issue details below this comment. -->
@@ -0,0 +1,44 @@
1
+ <!--- Provide a general summary of your changes in the Title above -->
2
+
3
+ ## Description
4
+
5
+ <!--- Describe your changes in detail -->
6
+
7
+ ## Types of changes
8
+
9
+ <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
10
+
11
+ - [ ] Bug fix (non-breaking change which fixes an issue)
12
+ - [ ] New feature (non-breaking change which adds functionality)
13
+ - [ ] Breaking change (fix or feature that would cause existing functionality to change)
14
+
15
+ ## Related Issue
16
+
17
+ <!--- This project only accepts pull requests related to open issues -->
18
+ <!--- If suggesting a new feature or change, please discuss it in an issue first -->
19
+ <!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
20
+ <!--- Please link to the issue here: -->
21
+
22
+ ## Motivation and Context
23
+
24
+ <!--- Why is this change required? What problem does it solve? -->
25
+
26
+ ## How Has This Been Tested?
27
+
28
+ <!--- Please describe in detail how you tested your changes. -->
29
+ <!--- Include details of your testing environment, and the tests you ran to -->
30
+ <!--- see how your change affects other areas of the code, etc. -->
31
+ <!--- Unit tests are expected for all changes. -->
32
+
33
+ ## Screenshots (if appropriate):
34
+
35
+ ## Checklist:
36
+
37
+ <!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
38
+ <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
39
+
40
+ - [ ] I have updated the documentation (if required).
41
+ - [ ] I have read the **CONTRIBUTING** document.
42
+ - [ ] I have added tests to cover my changes.
43
+ - [ ] All new and existing tests passed.
44
+ - [ ] I added a picture of a cute animal cause it's fun
@@ -0,0 +1,59 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: ".github/workflows"
5
+ schedule:
6
+ interval: "monthly"
7
+ commit-message:
8
+ # Prefix all commit messages with "chore: "
9
+ prefix: "chore"
10
+ open-pull-requests-limit: 10
11
+ cooldown:
12
+ default-days: 30
13
+ # Use the 'dependencies' default label and add
14
+ # the 'automerge' one for automerge github action support
15
+ labels:
16
+ - "dependencies"
17
+ - "automerge"
18
+
19
+ - package-ecosystem: "npm"
20
+ directory: "/"
21
+ commit-message:
22
+ # Prefix all commit messages with "chore: "
23
+ prefix: "chore"
24
+ schedule:
25
+ interval: "weekly"
26
+ open-pull-requests-limit: 10
27
+ cooldown:
28
+ default-days: 30
29
+ semver-major-days: 30
30
+ semver-minor-days: 30
31
+ semver-patch-days: 30
32
+ # Use the 'dependencies' default label and add
33
+ # the 'automerge' one for automerge github action support
34
+ labels:
35
+ - "dependencies"
36
+ - "automerge"
37
+ groups:
38
+ # Production dependencies without breaking changes
39
+ dependencies:
40
+ dependency-type: "production"
41
+ update-types:
42
+ - "minor"
43
+ - "patch"
44
+ # Production dependencies with breaking changes
45
+ dependencies-major:
46
+ dependency-type: "production"
47
+ update-types:
48
+ - "major"
49
+ # Development dependencies
50
+ dev-dependencies:
51
+ dependency-type: "development"
52
+ update-types:
53
+ - "minor"
54
+ - "patch"
55
+ # example for ignoring dependencies:
56
+ # ignore:
57
+ # - dependency-name: tap
58
+ # update-types: ["version-update:semver-major"]
59
+
@@ -0,0 +1,20 @@
1
+ documentation:
2
+ - changed-files:
3
+ - any-glob-to-any-file:
4
+ - "docs/*"
5
+ - "**/*.md"
6
+ - "guides/*"
7
+
8
+ build:
9
+ - changed-files:
10
+ - any-glob-to-any-file: ".github/workflows/*"
11
+
12
+ typescript:
13
+ - changed-files:
14
+ - any-glob-to-any-file: "**/*[.|-]d.ts"
15
+
16
+ cli:
17
+ - any: ["bin/**/*", "cli/**/*"]
18
+
19
+ test:
20
+ - any: ["test/**/*", "__tests__/**/*"]
@@ -0,0 +1,39 @@
1
+ name: automerge
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - labeled
7
+ - unlabeled
8
+ - synchronize
9
+ - opened
10
+ - edited
11
+ - ready_for_review
12
+ - reopened
13
+ check_run:
14
+ types:
15
+ - completed
16
+ status: {}
17
+
18
+ permissions: {} # deny-all at workflow level; each job declares only what it needs
19
+
20
+ jobs:
21
+ automerge:
22
+ name: Automerge
23
+ runs-on: ubuntu-latest
24
+ if: github.event_name != 'check_run' || github.event.check_run.name != 'Automerge'
25
+ permissions:
26
+ contents: write
27
+ pull-requests: write
28
+ checks: read
29
+ statuses: read
30
+ steps:
31
+ - name: Merge eligible pull requests
32
+ uses: lirantal/github-action-automerge@e2d68a8230f993393412ac28362eb4e6108ca93c # 1.0.2
33
+ with:
34
+ label: automerge
35
+ merge-method: squash
36
+ green-observations-required: "4"
37
+ poll-interval-seconds: "60"
38
+ timeout-seconds: "3600"
39
+ ignored-check-names: Automerge
@@ -0,0 +1,38 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ permissions: {}
6
+
7
+ jobs:
8
+ test:
9
+ permissions:
10
+ contents: read
11
+ strategy:
12
+ matrix:
13
+ node: ["24.x"]
14
+ platform: [ubuntu-latest]
15
+ name: Node v${{matrix.node}} ((${{matrix.platform}}))
16
+ runs-on: ${{matrix.platform}}
17
+ steps:
18
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
20
+ with:
21
+ node-version: ${{matrix.node}}
22
+ - name: install dependencies
23
+ run: npm install --ignore-scripts --legacy-peer-deps --engine-strict=false --allow-git=true --legacy-peer-deps --engine-strict=false --allow-git=true
24
+ - name: lint code
25
+ run: npm run lint
26
+ - name: build project
27
+ run: npm run build
28
+ - name: run tests
29
+ run: npm run test
30
+ - name: coverage
31
+ uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
32
+ if: github.actor != 'dependabot[bot]'
33
+ with:
34
+ fail_ci_if_error: false
35
+ verbose: false
36
+ token: ${{ secrets.CODECOV_TOKEN }}
37
+ env:
38
+ CI: true
@@ -0,0 +1,14 @@
1
+ name: "Pull Request Labeler"
2
+
3
+ on: pull_request
4
+
5
+ permissions: {}
6
+
7
+ jobs:
8
+ label:
9
+ permissions:
10
+ contents: read
11
+ pull-requests: write
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/labeler@bf12e9b00b37c5c0ca2b87b79b2daf7891dbda13 # v7.0.0
@@ -0,0 +1,43 @@
1
+ name: Links Checker (Lychee, On Schedule)
2
+
3
+ on:
4
+ repository_dispatch:
5
+ workflow_dispatch:
6
+ schedule:
7
+ - cron: "00 18 * * *"
8
+
9
+ permissions: {}
10
+
11
+ jobs:
12
+ linkChecker:
13
+ permissions:
14
+ contents: read
15
+ issues: write
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Check out repo
19
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20
+ with:
21
+ persist-credentials: false
22
+
23
+ - name: Restore lychee cache
24
+ uses: actions/cache@v6
25
+ with:
26
+ path: .lycheecache
27
+ key: cache-lychee-${{ github.sha }}
28
+ restore-keys: cache-lychee-
29
+
30
+ - name: Link Checker
31
+ id: lychee
32
+ uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
33
+ with:
34
+ args: --root-dir "$(pwd)" --cache --max-cache-age 1d . --max-retries 5 --retry-wait-time 60 --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36" --remap '.*npmjs\.org/package/(.*) https://registry.npmjs.com/$1' --remap '.*npmjs\.com/package/(.*) https://registry.npmjs.com/$1' --max-concurrency 1 -vv
35
+ fail: false
36
+
37
+ - name: Create Issue From File
38
+ if: steps.lychee.outputs.exit_code != 0
39
+ uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0
40
+ with:
41
+ title: Link Checker Report (lycheeverse/lychee-action)
42
+ content-filepath: ./lychee/out.md
43
+ labels: report, automated issue
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: stale
3
+
4
+ on:
5
+ workflow_dispatch:
6
+ schedule:
7
+ - cron: "9 9 * * *"
8
+
9
+ permissions:
10
+ issues: write
11
+ pull-requests: write
12
+
13
+ jobs:
14
+ stale:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
18
+ with:
19
+ close-issue-message: |
20
+ This issue has not seen any activity since it was marked stale.
21
+ Closing.
22
+ close-pr-message: |
23
+ This pull request has not seen any activity since it was marked stale.
24
+ Closing.
25
+ exempt-issue-labels: good-first-issue,need-help,no-stale,pinned,security
26
+ exempt-pr-labels: "autorelease: pending,good-first-issue,need-help,no-stale,pinned,security"
27
+ stale-issue-label: stale
28
+ stale-issue-message: |
29
+ This issue is stale because it has been open 60 days with no activity.
30
+ Remove stale label or comment or this will be closed in 7 days
31
+ stale-pr-label: stale
32
+ stale-pr-message: |
33
+ This PR is stale because it has been open 60 days with no activity.
34
+ Remove stale label or comment or this will be closed in 7 days.
@@ -0,0 +1,29 @@
1
+ name: Markdown Lint
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+
9
+ permissions: {}
10
+
11
+ jobs:
12
+ markdown_lint:
13
+ permissions:
14
+ contents: read
15
+ name: Lint Markdown files
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19
+
20
+ - name: Setup Node.js
21
+ uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
22
+ with:
23
+ node-version: '24.x'
24
+
25
+ - name: Install dependencies
26
+ run: npm install --ignore-scripts --legacy-peer-deps --engine-strict=false --allow-git=true --legacy-peer-deps --engine-strict=false --allow-git=true
27
+
28
+ - name: Markdown Lint
29
+ run: npm run lint:markdown || true
@@ -0,0 +1,43 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ concurrency: ${{ github.workflow }}-${{ github.ref }}
9
+
10
+ permissions: {}
11
+
12
+ jobs:
13
+ release:
14
+ permissions:
15
+ contents: write # to create release (changesets/action)
16
+ issues: write # to post issue comments (changesets/action)
17
+ pull-requests: write # to create pull request (changesets/action)
18
+ id-token: write # to create release (changesets/action)
19
+ packages: write # to publish to npm (changesets/action)
20
+ timeout-minutes: 20
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
25
+ with:
26
+ node-version: 24.x
27
+ registry-url: https://registry.npmjs.org
28
+ package-manager-cache: false
29
+ - name: install dependencies
30
+ run: npm install --ignore-scripts --legacy-peer-deps --engine-strict=false --allow-git=true --legacy-peer-deps --engine-strict=false --allow-git=true
31
+ - name: build project
32
+ run: npm run build
33
+ - name: Create Release Pull Request or Publish to npm
34
+ uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
35
+ with:
36
+ publish: npm run release
37
+ version: npm run version
38
+ commit: "chore: new release"
39
+ title: "chore: new release candidate"
40
+ env:
41
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42
+ # Register lirantal/detect-secrets and release.yml as an npm trusted publisher.
43
+ NPM_TOKEN: ''
@@ -0,0 +1,37 @@
1
+ name: Repository init
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches: [master]
7
+ paths:
8
+ - '.github/workflows/repo-init.yml' # only fires when this file itself changes
9
+ schedule:
10
+ - cron: '0 9 * * 1' # Every Monday at 09:00 UTC
11
+
12
+ permissions: {} # deny-all at workflow level; each job declares only what it needs
13
+
14
+ jobs:
15
+ create-label:
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ issues: write
19
+ steps:
20
+ - name: Create automerge label
21
+ env:
22
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23
+ run: |
24
+ gh label create "automerge" \
25
+ --repo "${{ github.repository }}" \
26
+ --color "0075ca" \
27
+ --description "Merge this PR automatically once checks pass" \
28
+ --force
29
+ - name: Create dependencies label
30
+ env:
31
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32
+ run: |
33
+ gh label create "dependencies" \
34
+ --repo "${{ github.repository }}" \
35
+ --color "0366d6" \
36
+ --description "Pull requests that update a dependency" \
37
+ --force
@@ -0,0 +1,16 @@
1
+ __tests__
2
+ .git
3
+ .github
4
+ .changeset
5
+ CODE_OF_CONDUCT.md
6
+ CHANGELOG.md
7
+ docs/**
8
+ __template__
9
+ __template__draft_/**
10
+ node_modules
11
+ dist
12
+ README.md
13
+ DESIGN.md
14
+ plugin/markdown/**
15
+ plugin/**
16
+ demo/**
package/.prettierrc.js ADDED
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ printWidth: 100,
3
+ tabWidth: 2,
4
+ singleQuote: true,
5
+ semi: false,
6
+ trailingComma: 'none',
7
+ useTabs: false,
8
+ bracketSpacing: false
9
+ }