forked from ipfs/ipfs-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from MarcelRaschke/snyk-fix-0b0c12ecb1a5c08fd0…
…02057a93927cdf [Snyk] Security upgrade electron from 12.0.5 to 15.5.3
- Loading branch information
Showing
5 changed files
with
244 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# This workflow checks out code, performs a Codacy security scan | ||
# and integrates the results with the | ||
# GitHub Advanced Security code scanning feature. For more information on | ||
# the Codacy security scan action usage and parameters, see | ||
# https://github.com/codacy/codacy-analysis-cli-action. | ||
# For more information on Codacy Analysis CLI in general, see | ||
# https://github.com/codacy/codacy-analysis-cli. | ||
|
||
name: Codacy Security Scan | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '25 10 * * 3' | ||
|
||
jobs: | ||
codacy-security-scan: | ||
name: Codacy Security Scan | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the repository to the GitHub Actions runner | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis | ||
- name: Run Codacy Analysis CLI | ||
uses: codacy/codacy-analysis-cli-action@1.1.0 | ||
with: | ||
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository | ||
# You can also omit the token and run the tools that support default configurations | ||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
verbose: true | ||
output: results.sarif | ||
format: sarif | ||
# Adjust severity of non-security issues | ||
gh-code-scanning-compat: true | ||
# Force 0 exit code to allow SARIF file generation | ||
# This will handover control about PR rejection to the GitHub side | ||
max-allowed-issues: 2147483647 | ||
|
||
# Upload the SARIF file generated in the previous step | ||
- name: Upload SARIF results file | ||
uses: github/codeql-action/upload-sarif@v1 | ||
with: | ||
sarif_file: results.sarif |
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,71 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '41 4 * * 2' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'javascript' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | ||
# Learn more: | ||
# 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 | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
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,37 @@ | ||
# This workflow requires that you have an existing account with codescan.io | ||
# For more information about configuring your workflow, | ||
# read our documentation at https://github.com/codescan-io/codescan-scanner-action | ||
name: CodeScan | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '36 23 * * 3' | ||
|
||
jobs: | ||
CodeScan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Cache files | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.sonar | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: Run Analysis | ||
uses: codescan-io/codescan-scanner-action@master | ||
with: | ||
login: ${{ secrets.CODESCAN_AUTH_TOKEN }} | ||
organization: ${{ secrets.CODESCAN_ORGANIZATION_KEY }} | ||
projectKey: ${{ secrets.CODESCAN_PROJECT_KEY }} | ||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v1 | ||
with: | ||
sarif_file: codescan.sarif |
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,87 @@ | ||
# This workflow downloads and installs the latest version of Xanitizer, builds your project, runs a Xanitizer security analysis on it, | ||
# and then archives the findings list reports and uploads the findings into the GitHub code scanning alert section of your repository. | ||
# | ||
# Documentation for the `RIGS-IT/xanitizer-action` is located here: https://github.com/RIGS-IT/xanitizer-action | ||
# | ||
# To use this basic workflow, you will need to complete the following setup steps: | ||
# | ||
# 1. The underlying Xanitizer, used in this workflow, needs a separate license file. | ||
# Licenses are free of charge for open source projects and for educational usage. | ||
# To get more information about the Xanitizer licenses and how to obtain a license file, | ||
# please consult https://www.xanitizer.com/xanitizer-pricing/. | ||
# | ||
# 2. The content of the license file has to be stored as a GitHub secret (e.g. XANITIZER_LICENSE) on this repository. | ||
# Please consult https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets for details. | ||
# | ||
# 3. Reference the GitHub secret in the step using the `RIGS-IT/xanitizer-action` GitHub action. | ||
# Example: | ||
# - name: Xanitizer Security Analysis | ||
# uses: RIGS-IT/xanitizer-action@v1 | ||
# with: | ||
# license: ${{ secrets.XANITIZER_LICENSE }} | ||
# | ||
# 4. As a static application security testing (SAST) tool, | ||
# Xanitizer requires that all dependencies of the artifacts being analyzed can be resolved successfully. | ||
# So you have to install all used libraries and build your project before running the security analysis, | ||
# e.g. via `mvn compile` for Java or `npm install` for JavaScript | ||
|
||
name: "Xanitizer Security Analysis" | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ master ] | ||
schedule: | ||
- cron: '45 2 * * 5' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
xanitizer-security-analysis: | ||
# Xanitizer runs on ubuntu-latest and windows-latest. | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Check out the repository | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Set up the correct Java version for your project | ||
# Please comment out, if your project does not contain Java source code. | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
# Compile the code for Java projects and get all libraries, e.g. via Maven | ||
# Please adapt, if your project uses another build system to compile Java source code. | ||
# Please comment out, if your project does not contain Java source code. | ||
- name: Compile Java code | ||
run: mvn -B compile | ||
|
||
# Install all dependent libraries for JavaScript/TypeScript projects, e.g. via npm | ||
# Please adapt to run `npm install` in the correct directories. | ||
# Please adapt, if your project uses another package manager for getting JavaScript libraries. | ||
# Please comment out, if your project does not use a package manager for getting JavaScript libraries. | ||
- name: Install JavaScript libraries | ||
run: npm install | ||
|
||
# Run the security analysis with default settings | ||
- name: Xanitizer Security Analysis | ||
uses: RIGS-IT/xanitizer-action@v1 | ||
with: | ||
license: ${{ secrets.XANITIZER_LICENSE }} | ||
|
||
# Archiving the findings list reports | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Xanitizer-Reports | ||
path: | | ||
*-Findings-List.pdf | ||
*-Findings-List.sarif | ||
# Uploads the findings into the GitHub code scanning alert section using the upload-sarif action | ||
- uses: github/codeql-action/upload-sarif@v1 | ||
with: | ||
sarif_file: Xanitizer-Findings-List.sarif |
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