-
Notifications
You must be signed in to change notification settings - Fork 110
Copilot/add gitignore for private keys #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Kushmanmb
wants to merge
10
commits into
MetaMask:main
Choose a base branch
from
Kushmanmb:copilot/add-gitignore-for-private-keys
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4e0f612
Initial plan
Copilot c909eff
Add blockchain address statistics file
Copilot 609c6a0
Merge pull request #1 from Kushmanmb/copilot/update-chain-and-mempool…
Kushmanmb 3ef46b4
Initial plan
Copilot aca7dc6
Add .gitignore to protect sensitive environment files and private keys
Copilot dff1c13
Initial plan
Copilot 9610b02
Refactor duplicated Node.js setup code into reusable composite action
Copilot f2656c0
Add README documentation for setup-node-from-nvmrc action
Copilot eaf7362
Fix action paths to use correct repository structure
Copilot 6cc8799
Merge pull request #7 from Kushmanmb/copilot/refactor-duplicated-code
Kushmanmb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Environment variables and sensitive configuration files | ||
| .env | ||
| .env.* | ||
| .env.local | ||
| .env.development | ||
| .env.test | ||
| .env.production | ||
| .env.staging | ||
|
|
||
| # Private keys and credentials | ||
| *.key | ||
| *.pem | ||
| private-key* | ||
| *private-key* | ||
|
|
||
| # Infura and blockchain configuration | ||
| infura.config* | ||
| *.secrets | ||
|
|
||
| # Node modules and dependencies | ||
| node_modules/ | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
|
|
||
| # Build artifacts | ||
| dist/ | ||
| build/ | ||
| *.log | ||
|
|
||
| # IDE and editor files | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
| .DS_Store |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Setup Node.js from .nvmrc | ||
|
|
||
| A reusable composite action that sets up Node.js using the version specified in an `.nvmrc` file. | ||
|
|
||
| ## Usage | ||
|
|
||
| ```yaml | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Setup Node.js from .nvmrc | ||
| uses: ./actions/setup-node-from-nvmrc | ||
| ``` | ||
|
|
||
| ## Requirements | ||
|
|
||
| - The repository must have an `.nvmrc` file in the root directory | ||
| - The `.nvmrc` file should contain a valid Node.js version (e.g., `16.14.0`, `18.x`) | ||
|
|
||
| ## What it does | ||
|
|
||
| 1. Reads the Node.js version from the `.nvmrc` file | ||
| 2. Sets up Node.js with the specified version using `actions/setup-node@v2` | ||
|
|
||
| ## Benefits | ||
|
|
||
| - Centralizes Node.js version management in `.nvmrc` | ||
| - Eliminates duplicated setup code across workflows | ||
| - Uses modern GitHub Actions output syntax (`$GITHUB_OUTPUT`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: 'Setup Node.js from .nvmrc' | ||
| description: 'Sets up Node.js using the version specified in .nvmrc file' | ||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Get Node.js version | ||
| id: nvm | ||
| shell: bash | ||
| run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: ${{ steps.nvm.outputs.NODE_VERSION }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "address": "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv", | ||
| "chain_stats": { | ||
| "funded_txo_count": 11, | ||
| "funded_txo_sum": 15007688098, | ||
| "spent_txo_count": 5, | ||
| "spent_txo_sum": 15007599040, | ||
| "tx_count": 13 | ||
| }, | ||
| "mempool_stats": { | ||
| "funded_txo_count": 0, | ||
| "funded_txo_sum": 0, | ||
| "spent_txo_count": 0, | ||
| "spent_txo_sum": 0, | ||
| "tx_count": 0 | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated blockchain data file accidentally committed
Medium Severity
The file
blockchain-address.jsoncontaining a Bitcoin address and transaction statistics appears to be accidentally committed. This file is unrelated to the PR's purpose of adding a .gitignore for private keys, is not referenced anywhere in the codebase, and looks like test data or API response output. While this is a public address (not a private key), committing such data could reveal information about wallet usage or testing patterns.