-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
93 changed files
with
4,591 additions
and
1,456 deletions.
There are no files selected for viewing
This file contains 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 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,131 @@ | ||
name: "Security Audit" | ||
|
||
on: | ||
push: | ||
branches: [ develop, master ] | ||
pull_request: | ||
branches: [ develop ] | ||
schedule: | ||
- cron: '23 4 * * 1' | ||
|
||
jobs: | ||
codeql: | ||
name: CodeQL | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
env: | ||
JDK_VERSION: 17 | ||
JDK_FILE: openjdk-17_linux-x64_bin.tar.gz | ||
JDK_URL: https://download.java.net/java/GA/jdk17/0d483333a00540d886896bac774ff48b/35/GPL/openjdk-17_linux-x64_bin.tar.gz | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Fetch all history for all tags and branches | ||
run: git fetch --prune --unshallow | ||
|
||
- name: Prepare JDK folder | ||
run: mkdir -p ~/jdk | ||
|
||
# (1) -> Prepare cache and Java | ||
- name: Cache ~/.m2 | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
|
||
- name: Cache JDK folder | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/jdk | ||
key: ${{ env.JDK_FILE }} | ||
|
||
# (2) -> Prepare Java | ||
- name: Download JDK | ||
run: | | ||
if [ ! -f ~/jdk/$JDK_FILE ]; then | ||
wget --quiet $JDK_URL -O ~/jdk/$JDK_FILE | ||
fi | ||
cp ~/jdk/$JDK_FILE . | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'jdkfile' | ||
java-version: ${{ env.JDK_VERSION }} | ||
jdkFile: ${{ env.JDK_FILE }} | ||
architecture: x64 | ||
|
||
- name: Verify Maven and Java | ||
run: | | ||
mvn --version | ||
# (3) -> Init CodeQL | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: 'java' | ||
|
||
# (3) -> Build | ||
- name: Build package | ||
run: | | ||
mvn --quiet -B -U --fail-fast -DskipTests package | ||
# (4) -> CodeQL Analysis | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 | ||
|
||
snyk: | ||
name: Snyk (Maven) | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@master | ||
|
||
- name: Perform Snyk Check (Maven) | ||
uses: snyk/actions/maven@master | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
args: --severity-threshold=high | ||
|
||
snyk-docker: | ||
name: Snyk (Docker) | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
env: | ||
PUBLIC_IMAGE: fairdata/fairdatapoint | ||
TAG_DEVELOP: develop | ||
|
||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@master | ||
|
||
- name: Docker build | ||
run: | | ||
docker pull $PUBLIC_IMAGE:$TAG_DEVELOP | ||
docker build --cache-from $PUBLIC_IMAGE:$TAG_DEVELOP -t fdp:snyk-test -f Dockerfile.build . | ||
- name: Perform Snyk Check (Docker) | ||
uses: snyk/actions/docker@master | ||
continue-on-error: true | ||
env: | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
image: fdp:snyk-test | ||
args: --severity-threshold=high |
This file contains 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 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,18 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
We support the latest major and minor version with patch versions that fix vulnerabilities and critical bugs. For older versions, we highly recommend upgrading to the latest version. | ||
|
||
| Version | Supported | | ||
|---------| ------------------ | | ||
| 1.14.0 | :white_check_mark: | | ||
| < 1.14 | :x: | | ||
|
||
## Current Recommendations | ||
|
||
* Use 1.14.0 with the newest dependencies (and no known vulnerabilities) | ||
|
||
## Reporting a Vulnerability | ||
|
||
In case you encounter a vulnerability, please let us know via [GitHub issues](https://github.com/FAIRDataTeam/FAIRDataPoint/issues). If you need to share sensitive information, indicate that in the issue and we will provide a secured channel how you can privately send us such information. |
This file contains 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 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 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
Oops, something went wrong.