Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit 217d3fc

Browse files
committed
Merge branch 'release/1.3.0' into master
2 parents 83688cc + 2715505 commit 217d3fc

12 files changed

Lines changed: 7597 additions & 3673 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ jobs:
1818

1919
- run:
2020
name: Install global packages
21-
command: sudo npm install -g codecov greenkeeper-lockfile@1
22-
23-
- run:
24-
name: Greenkeeper Lockfile
25-
command: greenkeeper-lockfile-update
21+
command: sudo npm install -g codecov
2622

2723
- run:
2824
name: Install dependencies
@@ -46,10 +42,6 @@ jobs:
4642
# name: Mutation Tests
4743
# command: npm run test:mutants
4844

49-
- run:
50-
name: Push any lockfile changes
51-
command: greenkeeper-lockfile-upload
52-
5345
- run:
5446
name: Send reports to codecov.io
5547
command: codecov

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Basic dependabot.yml file with
2+
# minimum configuration for two package managers
3+
4+
version: 2
5+
updates:
6+
# Enable version updates for npm
7+
- package-ecosystem: "npm"
8+
# Look for `package.json` and `lock` files in the `root` directory
9+
directory: "/"
10+
# Check the npm registry for updates every day (weekdays)
11+
schedule:
12+
interval: "daily"
13+
14+
# Enable version updates for Docker
15+
# - package-ecosystem: "docker"
16+
# # Look for a `Dockerfile` in the `root` directory
17+
# directory: "/"
18+
# # Check for updates once a week
19+
# schedule:
20+
# interval: "weekly"
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [develop, master]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [develop]
9+
schedule:
10+
- cron: '0 4 * * 0'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
# Override automatic language detection by changing the below list
21+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
22+
language: ['javascript']
23+
# Learn more...
24+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
29+
with:
30+
# We must fetch at least the immediate parents so that if this is
31+
# a pull request then we can checkout the head.
32+
fetch-depth: 2
33+
34+
# If this run was triggered by a pull request event, then checkout
35+
# the head of the pull request instead of the merge commit.
36+
- run: git checkout HEAD^2
37+
if: ${{ github.event_name == 'pull_request' }}
38+
39+
# Initializes the CodeQL tools for scanning.
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@v1
42+
with:
43+
languages: ${{ matrix.language }}
44+
45+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
46+
# If this step fails, then you should remove it and run the build manually (see below)
47+
- name: Autobuild
48+
uses: github/codeql-action/autobuild@v1
49+
50+
# ℹ️ Command-line programs to run using the OS shell.
51+
# 📚 https://git.io/JvXDl
52+
53+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
54+
# and modify them (or add more) to build your code if your project
55+
# uses a compiled language
56+
57+
#- run: |
58+
# make bootstrap
59+
# make release
60+
61+
- name: Perform CodeQL Analysis
62+
uses: github/codeql-action/analyze@v1

.snyk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.16.0
3+
ignore: {}
4+
# patches apply the minimum changes required to fix a vulnerability
5+
patch:
6+
SNYK-JS-LODASH-567746:
7+
- node-jose > lodash:
8+
patched: '2020-07-06T08:34:13.815Z'

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Jose-Simple simplifies the encryption and decryption of data using the JOSE (JSO
1010

1111
- The project depends on [`node-jose`](https://github.com/cisco/node-jose) by Cisco.
1212
- `node-jose` [does not allow you to use private keys with passwords](https://github.com/cisco/node-jose/issues/69#issuecomment-236133179), and [they have no intention of changing that](https://github.com/cisco/node-jose/issues/234#issuecomment-457615794).
13-
- **Requires Node 10.12.0 or better** if you want to run the tests. Works fine under Node 12.6+, and might run under versions of node going back to 8.x but no further.
13+
- **Requires Node 10.12.0 or better** if you want to run the tests. Works fine under Node 12+, and might run under versions of node going back to 8.x but no further.
1414

1515
## Installation
1616

@@ -52,7 +52,7 @@ encrypt(someData).then(encrypted => {
5252

5353
### Options
5454

55-
See [`encrypt.js#L662`](https://github.com/cisco/node-jose/blob/master/lib/jwe/encrypt.js#L662)
55+
See [`encrypt.js#L660-L668`](https://github.com/cisco/node-jose/blob/master/lib/jwe/encrypt.js#L660-L668)
5656

5757
You can add `encrypt` options as follows:
5858

@@ -61,19 +61,17 @@ const { encrypt, decrypt } = jose(privateKey, publicKey, {
6161
format: 'compact'
6262
protect: true,
6363
// or any of the encrypt options than can be passed to JWE.createEncrypt.
64-
// https://github.com/cisco/node-jose/blob/master/lib/jwe/encrypt.js#L661
64+
// https://github.com/cisco/node-jose/blob/master/lib/jwe/encrypt.js#L660-L668
6565
})
6666
```
6767

6868
## Development
6969

70-
[![Greenkeeper badge](https://badges.greenkeeper.io/davesag/jose-simple.svg)](https://greenkeeper.io/)
71-
7270
<!-- prettier-ignore -->
73-
| Branch | Status | Coverage | Comment |
74-
| ------ | ------ | -------- | ------- |
75-
| `develop` | [![CircleCI](https://circleci.com/gh/davesag/jose-simple/tree/develop.svg?style=svg)](https://circleci.com/gh/davesag/jose-simple/tree/develop) | [![codecov](https://codecov.io/gh/davesag/jose-simple/branch/develop/graph/badge.svg)](https://codecov.io/gh/davesag/jose-simple) | Work in progress |
76-
| `master` | [![CircleCI](https://circleci.com/gh/davesag/jose-simple/tree/master.svg?style=svg)](https://circleci.com/gh/davesag/jose-simple/tree/master) | [![codecov](https://codecov.io/gh/davesag/jose-simple/branch/master/graph/badge.svg)](https://codecov.io/gh/davesag/jose-simple) | Latest release |
71+
| Branch | Status | Coverage | Audit | Comment |
72+
| ------ | ------ | -------- | ----- | ------- |
73+
| `develop` | [![CircleCI](https://circleci.com/gh/davesag/jose-simple/tree/develop.svg?style=svg)](https://circleci.com/gh/davesag/jose-simple/tree/develop) | [![codecov](https://codecov.io/gh/davesag/jose-simple/branch/develop/graph/badge.svg)](https://codecov.io/gh/davesag/jose-simple) | [![Vulnerabilities](https://snyk.io/test/github/davesag/jose-simple/develop/badge.svg)](https://snyk.io/test/github/davesag/jose-simple/develop) | Work in progress |
74+
| `master` | [![CircleCI](https://circleci.com/gh/davesag/jose-simple/tree/master.svg?style=svg)](https://circleci.com/gh/davesag/jose-simple/tree/master) | [![codecov](https://codecov.io/gh/davesag/jose-simple/branch/master/graph/badge.svg)](https://codecov.io/gh/davesag/jose-simple) | [![Vulnerabilities](https://snyk.io/test/github/davesag/jose-simple/master/badge.svg)](https://snyk.io/test/github/davesag/jose-simple/master) | Latest release |
7775

7876
### Prerequisites
7977

SECURITY.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported |
6+
| ------- | ------------------ |
7+
| 1.x | :white_check_mark: |
8+
| < 1.x | :x: |
9+
10+
## Reporting a Vulnerability
11+
12+
Report a vulnerability to [the author](https://about.me/davesag) directly.
13+
14+
You can expect to get an update on a reported vulnerability within 2 working days.
15+
16+
## Vulnerabilities in development dependencies
17+
18+
I'm using `dependabot` to scan for security issues and update dependencies in the `develop` branch regularly.

0 commit comments

Comments
 (0)