Skip to content

Commit 37c7ccd

Browse files
committed
Merge branch 'develop'
2 parents c1a7f1a + 85b480a commit 37c7ccd

File tree

18 files changed

+394
-137
lines changed

18 files changed

+394
-137
lines changed

.github/CONTRIBUTING.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
### Submitting Pull Requests
2+
3+
We'd love for you to contribute to our source code and to make this package even better than it is
4+
today! Here are the guidelines we'd like you to follow:
5+
6+
- [Issues and Bugs](#issue)
7+
- [Feature Requests](#feature)
8+
- [Coding Rules](#rules)
9+
- [Commit Message Guidelines](#commit)
10+
11+
## <a name="issue"></a> Found an Issue?
12+
13+
If you find a bug in the source code or a mistake in the documentation, you can help us by
14+
submitting an issue to our GitHub Repository. Even better you can submit a Pull Request
15+
with a fix. But first search if the issue is already described!
16+
17+
If not create a new issue:
18+
19+
* Tell about your environment:
20+
* node version
21+
* nativescript version
22+
* used platform and versionÍ
23+
* Describe your issue
24+
* describe your steps leading to the issue
25+
* attach error logs or screenshots
26+
* if possible provide test case or screenshots
27+
28+
## <a name="feature"></a> Want a Feature?
29+
30+
You can request a new feature by submitting an issue to our [GitHub Repository][github].
31+
32+
Please follow these basic steps to simplify pull request reviews - if you don't you'll probably just be asked to anyway.**
33+
34+
* Please rebase your branch against the current develop, use the **develop** for pull requests
35+
* Please ensure that the test suite passes **and** that code is lint free before submitting a PR by running:
36+
* ```npm test```
37+
* If you've added new functionality, **please** include tests which validate its behaviour
38+
* Make reference to possible [issues](https://github.com/ContinuousSecurityTooling/zap-java/issues) on PR comment
39+
40+
## <a name="rules"></a> Coding Rules
41+
42+
To ensure consistency throughout the source code, keep these rules in mind as you are working:
43+
44+
* All features or bug fixes **must be tested** by one or more [specs][unit-testing].
45+
* All public API methods **must be documented** with jsdoc.
46+
47+
## <a name="commit"></a> Git Commit Guidelines
48+
49+
We're using [Angular Commit Guidelines](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#-git-commit-guidelines)

.github/FUNDING.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# These are supported funding model platforms
2+
3+
# github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: continuoussecuritytooling
5+
#open_collective: moleculer
6+
#ko_fi: # Replace with a single Ko-fi username
7+
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
custom: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H8TR8246RCDJG

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
## Prerequisites
8+
9+
Please answer the following questions for yourself before submitting an issue.
10+
11+
- [ ] I am running the latest version
12+
- [ ] I checked the documentation and found no answer
13+
- [ ] I checked to make sure that this issue has not already been filed
14+
- [ ] I'm reporting the issue to the correct repository
15+
16+
## Current Behavior
17+
18+
<!-- What is the current behavior? -->
19+
20+
## Expected Behavior
21+
22+
<!-- Please describe the behavior you are expecting -->
23+
24+
## Failure Information
25+
26+
<!-- Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template. -->
27+
28+
### Steps to Reproduce
29+
30+
Please provide detailed steps for reproducing the issue.
31+
32+
1. step 1
33+
2. step 2
34+
3. you get it...
35+
36+
37+
### Context
38+
39+
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
40+
41+
* Java version:
42+
* Maven version:
43+
* Operating System:
44+
45+
### Failure Logs
46+
```
47+
48+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
9+
10+
**Describe the solution you'd like**
11+
<!-- A clear and concise description of what you want to happen. -->
12+
13+
**Describe alternatives you've considered**
14+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
15+
16+
**Additional context**
17+
<!-- Add any other context or screenshots about the feature request here. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## :memo: Description
2+
3+
<!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. -->
4+
5+
### :dart: Relevant issues
6+
<!-- Please add relevant opened issues -->
7+
8+
### :gem: Type of change
9+
10+
<!-- Please delete options that are not relevant. -->
11+
12+
- [ ] Bug fix (non-breaking change which fixes an issue)
13+
- [ ] New feature (non-breaking change which adds functionality)
14+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
15+
- [ ] This change requires a documentation update
16+
17+
### :scroll: Example code
18+
```js
19+
20+
```
21+
22+
## :vertical_traffic_light: How Has This Been Tested?
23+
24+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
25+
26+
- [ ] Test A
27+
- [ ] Test B
28+
29+
## :checkered_flag: Checklist:
30+
31+
- [ ] My code follows the style guidelines of this project
32+
- [ ] I have performed a self-review of my own code
33+
- [ ] **I have added tests that prove my fix is effective or that my feature works**
34+
- [ ] **New and existing unit tests pass locally with my changes**
35+
- [ ] I have commented my code, particularly in hard-to-understand areas

.github/workflows/analysis.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "Analysis"
13+
14+
on:
15+
push:
16+
branches: [ develop ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ develop ]
20+
schedule:
21+
- cron: '34 17 * * 1'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'java' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37+
# Learn more:
38+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
43+
44+
- name: Setup Java JDK
45+
uses: actions/setup-java@v3
46+
with:
47+
distribution: 'temurin'
48+
java-version: 17
49+
50+
# Initializes the CodeQL tools for scanning.
51+
- name: Initialize CodeQL
52+
uses: github/codeql-action/init@v2
53+
with:
54+
languages: ${{ matrix.language }}
55+
# If you wish to specify custom queries, you can do so here or in a config file.
56+
# By default, queries listed here will override any specified in a config file.
57+
# Prefix the list here with "+" to use these queries and those in the config file.
58+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
59+
60+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
61+
# If this step fails, then you should remove it and run the build manually (see below)
62+
- name: Autobuild
63+
uses: github/codeql-action/autobuild@v2
64+
65+
# ℹ️ Command-line programs to run using the OS shell.
66+
# 📚 https://git.io/JvXDl
67+
68+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
69+
# and modify them (or add more) to build your code if your project
70+
# uses a compiled language
71+
72+
#- run: |
73+
# make bootstrap
74+
# make release
75+
76+
- name: Perform CodeQL Analysis
77+
uses: github/codeql-action/analyze@v2

.github/workflows/pipeline.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
merge_group:
6+
push:
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up JDK 17
16+
uses: actions/setup-java@v3
17+
with:
18+
distribution: 'temurin'
19+
java-version: 17
20+
21+
- name: Build with Maven
22+
run: ./mvnw package --batch-mode

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: release-workflow # You may choose a different name
2+
run-name: Release run ${{ github.run_number }} # Enumerates entries in the "workflow runs" view
3+
on:
4+
workflow_dispatch: # Only run when manually started
5+
jobs:
6+
release: # Arbitrarily chosen
7+
name: Release # Arbitrarily chosen
8+
runs-on: ubuntu-22.04 # May also run on other kinds of distros
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Setup Java
13+
uses: actions/setup-java@v3 # Does also set up Maven and GPG
14+
with:
15+
distribution: 'temurin' # As good as any other, see: https://github.com/actions/setup-java#supported-distributions
16+
java-package: 'jdk'
17+
java-version: '11'
18+
check-latest: true
19+
server-id: 'central'
20+
server-username: OSSRH_USERNAME
21+
server-password: OSSRH_PASSWORD
22+
cache: 'maven'
23+
- name: Build & Deploy
24+
run: |
25+
git config --global user.name github-actions[bot]
26+
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
27+
mvn -B gitflow:release
28+
env:
29+
OSSRH_USERNAME: ${{ secrets.OSS_SONATYPE_USER }}
30+
OSSRH_PASSWORD: ${{ secrets.OSS_SONATYPE_PASS }}

.mvn/wrapper/maven-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.2/apache-maven-3.5.2-bin.zip
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip

.travis.yml

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

0 commit comments

Comments
 (0)