Skip to content

Commit 5cad84a

Browse files
authored
Merge branch 'master' into master
2 parents 8108b42 + 6675da8 commit 5cad84a

27 files changed

Lines changed: 1079 additions & 276 deletions

File tree

.all-contributorsrc

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"files": [
3+
"README.md"
4+
],
5+
"imageSize": 100,
6+
"commit": false,
7+
"contributors": [
8+
{
9+
"login": "Mooninaut",
10+
"name": "Clement Cherlin",
11+
"avatar_url": "https://avatars.githubusercontent.com/u/1463364?v=4",
12+
"profile": "https://github.com/Mooninaut",
13+
"contributions": [
14+
"code",
15+
"test"
16+
]
17+
},
18+
{
19+
"login": "alexbraga",
20+
"name": "Alex Braga",
21+
"avatar_url": "https://avatars.githubusercontent.com/u/61568124?v=4",
22+
"profile": "https://github.com/alexbraga",
23+
"contributions": [
24+
"doc"
25+
]
26+
},
27+
{
28+
"login": "c00ler",
29+
"name": "Alexey Venderov",
30+
"avatar_url": "https://avatars.githubusercontent.com/u/1210272?v=4",
31+
"profile": "https://github.com/c00ler",
32+
"contributions": [
33+
"code"
34+
]
35+
},
36+
{
37+
"login": "yassenb",
38+
"name": "yassenb",
39+
"avatar_url": "https://avatars.githubusercontent.com/u/531223?v=4",
40+
"profile": "https://github.com/yassenb",
41+
"contributions": [
42+
"code"
43+
]
44+
},
45+
{
46+
"login": "dizney",
47+
"name": "Sidney Beekhoven",
48+
"avatar_url": "https://avatars.githubusercontent.com/u/903673?v=4",
49+
"profile": "https://sidney.beekhoven.nl",
50+
"contributions": [
51+
"code",
52+
"doc"
53+
]
54+
},
55+
{
56+
"login": "manoelcampos",
57+
"name": "Manoel Campos",
58+
"avatar_url": "https://avatars.githubusercontent.com/u/261605?v=4",
59+
"profile": "https://youtube.com/@manoelcamposdev",
60+
"contributions": [
61+
"code",
62+
"test",
63+
"infra"
64+
]
65+
}
66+
],
67+
"contributorsPerLine": 7,
68+
"projectName": "dotenv-java",
69+
"projectOwner": "cdimascio",
70+
"repoType": "github",
71+
"repoHost": "https://github.com",
72+
"skipCi": true,
73+
"commitConvention": "angular"
74+
}

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily
7+
8+
- package-ecosystem: maven
9+
directory: /
10+
schedule:
11+
interval: daily

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
permissions: read-all
2+
3+
name: build
4+
5+
on:
6+
push:
7+
branches: [ "master", "main" ]
8+
pull_request:
9+
branches: [ "master", "main" ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Harden Runner
17+
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
18+
with:
19+
egress-policy: audit
20+
21+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
22+
- name: Set up JDK 11
23+
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
24+
with:
25+
java-version: '11'
26+
distribution: 'adopt'
27+
cache: maven
28+
- name: Build with Maven
29+
run: mvn clean package jacoco:report
30+
- name: Codacy coverage report upload
31+
env:
32+
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
33+
run: |
34+
test -z $CODACY_PROJECT_TOKEN || bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r target/site/jacoco/jacoco.xml
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request,
4+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+
# Once installed, if the workflow run is marked as required,
6+
# PRs introducing known-vulnerable packages will be blocked from merging.
7+
#
8+
# Source repository: https://github.com/actions/dependency-review-action
9+
name: 'Dependency Review'
10+
on: [pull_request]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
dependency-review:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Harden Runner
20+
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
21+
with:
22+
egress-policy: audit
23+
24+
- name: 'Checkout Repository'
25+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26+
- name: 'Dependency Review'
27+
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4

.github/workflows/scorecards.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# This workflow uses actions that are not certified by GitHub. They are provided
2+
# by a third-party and are governed by separate terms of service, privacy
3+
# policy, and support documentation.
4+
5+
name: Scorecard supply-chain security
6+
on:
7+
# For Branch-Protection check. Only the default branch is supported. See
8+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
9+
branch_protection_rule:
10+
# To guarantee Maintained check is occasionally updated. See
11+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
12+
schedule:
13+
- cron: '20 7 * * 2'
14+
push:
15+
branches: ["master"]
16+
17+
# Declare default permissions as read only.
18+
permissions: read-all
19+
20+
jobs:
21+
analysis:
22+
name: Scorecard analysis
23+
runs-on: ubuntu-latest
24+
permissions:
25+
# Needed to upload the results to code-scanning dashboard.
26+
security-events: write
27+
# Needed to publish results and get a badge (see publish_results below).
28+
id-token: write
29+
contents: read
30+
actions: read
31+
32+
steps:
33+
- name: Harden Runner
34+
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
35+
with:
36+
egress-policy: audit
37+
38+
- name: "Checkout code"
39+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
40+
with:
41+
persist-credentials: false
42+
43+
- name: "Run analysis"
44+
uses: ossf/scorecard-action@dc50aa9510b46c811795eb24b2f1ba02a914e534 # v2.3.3
45+
with:
46+
results_file: results.sarif
47+
results_format: sarif
48+
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
49+
# - you want to enable the Branch-Protection check on a *public* repository, or
50+
# - you are installing Scorecards on a *private* repository
51+
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
52+
# repo_token: ${{ secrets.SCORECARD_TOKEN }}
53+
54+
# Public repositories:
55+
# - Publish results to OpenSSF REST API for easy access by consumers
56+
# - Allows the repository to include the Scorecard badge.
57+
# - See https://github.com/ossf/scorecard-action#publishing-results.
58+
# For private repositories:
59+
# - `publish_results` will always be set to `false`, regardless
60+
# of the value entered here.
61+
publish_results: true
62+
63+
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
64+
# format to the repository Actions tab.
65+
- name: "Upload artifact"
66+
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
67+
with:
68+
name: SARIF file
69+
path: results.sarif
70+
retention-days: 5
71+
72+
# Upload the results to GitHub's code scanning dashboard.
73+
- name: "Upload to code-scanning"
74+
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
75+
with:
76+
sarif_file: results.sarif

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
repos:
2+
- repo: https://github.com/gherynos/pre-commit-java
3+
rev: v0.2.4
4+
hooks:
5+
- id: Checkstyle
6+
- repo: https://github.com/gitleaks/gitleaks
7+
rev: v8.16.3
8+
hooks:
9+
- id: gitleaks
10+
- repo: https://github.com/pre-commit/pre-commit-hooks
11+
rev: v4.4.0
12+
hooks:
13+
- id: end-of-file-fixer
14+
- id: trailing-whitespace

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)