Skip to content

Commit

Permalink
Merge pull request #6 from mangelsnc/feature/gitignore
Browse files Browse the repository at this point in the history
Exclude keys in .gitignore
  • Loading branch information
mangelsnc authored Jan 5, 2023
2 parents 94dafe4 + 59178a5 commit 354807f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.2.0] - 2023-01-05
### Added
- Add .gitignore entry to avoid synchronize public and private key with repo.

## [2.1.0] - 2023-01-04
### Added
- Add support to delete secrets.
Expand Down
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "undisclosed",
"version": "2.1.0",
"version": "2.2.0",
"description": "Command line tool to handle encrypted secrets",
"main": "dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function handleInit() {

if (!fs.existsSync(config.keypair.path)) {
fs.mkdirSync(config.keypair.path);
fs.appendFileSync(config.keypair.path + '/.gitignore', '*.pem');
}

Output.log("Undisclosed initialized.\n");
Expand Down

0 comments on commit 354807f

Please sign in to comment.