Merge branch 'main' into patch-2
This commit is contained in:
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 'Auto-assign issue'
|
- name: 'Auto-assign issue'
|
||||||
uses: pozil/[email protected]0.1
|
uses: pozil/[email protected]1.0
|
||||||
with:
|
with:
|
||||||
assignees: phantsure,tiwarishub,anuragc617,vsvipul,bishal-pdmsft
|
assignees: phantsure,tiwarishub,anuragc617,vsvipul,bishal-pdmsft
|
||||||
numOfAssignee: 1
|
numOfAssignee: 1
|
||||||
|
|||||||
@@ -12,10 +12,11 @@ These are the workflow files for helping people get started with GitHub Actions.
|
|||||||
|
|
||||||
### Directory structure
|
### Directory structure
|
||||||
|
|
||||||
* [ci](ci): solutions for Continuous Integration workflows.
|
* [ci](ci): solutions for Continuous Integration workflows
|
||||||
* [deployments](deployments): solutions for Deployment workflows.
|
* [deployments](deployments): solutions for Deployment workflows
|
||||||
* [automation](automation): solutions for automating workflows.
|
* [automation](automation): solutions for automating workflows
|
||||||
* [code-scanning](code-scanning): starter workflows for [Code Scanning](https://github.com/features/security)
|
* [code-scanning](code-scanning): solutions for [Code Scanning](https://github.com/features/security)
|
||||||
|
* [pages](pages): solutions for Pages workflows
|
||||||
* [icons](icons): svg icons for the relevant template
|
* [icons](icons): svg icons for the relevant template
|
||||||
|
|
||||||
Each workflow must be written in YAML and have a `.yml` extension. They also need a corresponding `.properties.json` file that contains extra metadata about the workflow (this is displayed in the GitHub.com UI).
|
Each workflow must be written in YAML and have a `.yml` extension. They also need a corresponding `.properties.json` file that contains extra metadata about the workflow (this is displayed in the GitHub.com UI).
|
||||||
@@ -40,6 +41,8 @@ For example: `ci/django.yml` and `ci/properties/django.properties.json`.
|
|||||||
* monitoring
|
* monitoring
|
||||||
* Automation
|
* Automation
|
||||||
* utilities
|
* utilities
|
||||||
|
* Pages
|
||||||
|
* Hugo
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
These variables can be placed in the starter workflow and will be substituted as detailed below:
|
These variables can be placed in the starter workflow and will be substituted as detailed below:
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will build a Java project with Ant
|
# This workflow will build a Java project with Ant
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant
|
||||||
|
|
||||||
name: Java CI
|
name: Java CI
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# This workflow will build a .NET project
|
||||||
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
||||||
|
|
||||||
name: .NET
|
name: .NET
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# This workflow will build a golang project
|
||||||
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
||||||
|
|
||||||
name: Go
|
name: Go
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
# separate terms of service, privacy policy, and support
|
# separate terms of service, privacy policy, and support
|
||||||
# documentation.
|
# documentation.
|
||||||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
|
||||||
|
|
||||||
name: Java CI with Gradle
|
name: Java CI with Gradle
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
|
||||||
|
|
||||||
# This workflow uses actions that are not certified by GitHub.
|
# This workflow uses actions that are not certified by GitHub.
|
||||||
# They are provided by a third-party and are governed by
|
# They are provided by a third-party and are governed by
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
|
||||||
|
|
||||||
name: Node.js CI
|
name: Node.js CI
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
||||||
|
|
||||||
name: Node.js Package
|
name: Node.js Package
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
||||||
|
|
||||||
name: Node.js Package
|
name: Node.js Package
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
||||||
|
|
||||||
name: Python application
|
name: Python application
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
||||||
|
|
||||||
name: Python package
|
name: Python package
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# This workflow will upload a Python Package using Twine when a release is created
|
# This workflow will upload a Python Package using Twine when a release is created
|
||||||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
||||||
|
|
||||||
# This workflow uses actions that are not certified by GitHub.
|
# This workflow uses actions that are not certified by GitHub.
|
||||||
# They are provided by a third-party and are governed by
|
# They are provided by a third-party and are governed by
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# This workflow will build a Swift project
|
||||||
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
|
||||||
|
|
||||||
name: Swift
|
name: Swift
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
@@ -46,7 +46,8 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Trigger APIsec scan:
|
|
||||||
|
Trigger_APIsec_scan:
|
||||||
permissions:
|
permissions:
|
||||||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
||||||
|
|||||||
@@ -0,0 +1,69 @@
|
|||||||
|
# This workflow uses actions that are not certified by GitHub.
|
||||||
|
# They are provided by a third-party and are governed by
|
||||||
|
# separate terms of service, privacy policy, and support
|
||||||
|
# documentation.
|
||||||
|
|
||||||
|
# EthicalCheck addresses the critical need to continuously security test APIs in development and in production.
|
||||||
|
|
||||||
|
# EthicalCheck provides the industry’s only free & automated API security testing service that uncovers security vulnerabilities using OWASP API list.
|
||||||
|
# Developers relies on EthicalCheck to evaluate every update and release, ensuring that no APIs go to production with exploitable vulnerabilities.
|
||||||
|
|
||||||
|
# You develop the application and API, we bring complete and continuous security testing to you, accelerating development.
|
||||||
|
|
||||||
|
# Know your API and Applications are secure with EthicalCheck – our free & automated API security testing service.
|
||||||
|
|
||||||
|
# How EthicalCheck works?
|
||||||
|
# EthicalCheck functions in the following simple steps.
|
||||||
|
# 1. Security Testing.
|
||||||
|
# Provide your OpenAPI specification or start with a public Postman collection URL.
|
||||||
|
# EthicalCheck instantly instrospects your API and creates a map of API endpoints for security testing.
|
||||||
|
# It then automatically creates hundreds of security tests that are non-intrusive to comprehensively and completely test for authentication, authorizations, and OWASP bugs your API. The tests addresses the OWASP API Security categories including OAuth 2.0, JWT, Rate Limit etc.
|
||||||
|
|
||||||
|
# 2. Reporting.
|
||||||
|
# EthicalCheck generates security test report that includes all the tested endpoints, coverage graph, exceptions, and vulnerabilities.
|
||||||
|
# Vulnerabilities are fully triaged, it contains CVSS score, severity, endpoint information, and OWASP tagging.
|
||||||
|
|
||||||
|
|
||||||
|
# This is a starter workflow to help you get started with EthicalCheck Actions
|
||||||
|
|
||||||
|
name: EthicalCheck-Workflow
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
# Triggers the workflow on push or pull request events but only for the $default-branch branch
|
||||||
|
# Customize trigger events based on your DevSecOps processes.
|
||||||
|
push:
|
||||||
|
branches: [ $default-branch, $protected-branches ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ $default-branch ]
|
||||||
|
schedule:
|
||||||
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Trigger_EthicalCheck:
|
||||||
|
permissions:
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
|
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: EthicalCheck Free & Automated API Security Testing Service
|
||||||
|
uses: apisec-inc/ethicalcheck-action@005fac321dd843682b1af6b72f30caaf9952c641
|
||||||
|
with:
|
||||||
|
# The OpenAPI Specification URL or Swagger Path or Public Postman collection URL.
|
||||||
|
oas-url: "http://netbanking.apisec.ai:8080/v2/api-docs"
|
||||||
|
# The email address to which the penetration test report will be sent.
|
||||||
|
email: "[email protected]"
|
||||||
|
sarif-result-file: "ethicalcheck-results.sarif"
|
||||||
|
|
||||||
|
- name: Upload sarif file to repository
|
||||||
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
|
with:
|
||||||
|
sarif_file: ./ethicalcheck-results.sarif
|
||||||
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "EthicalCheck",
|
||||||
|
"creator": "APIsec",
|
||||||
|
"description": "EthicalCheck provides the industry’s only free & automated API security testing service that uncovers security vulnerabilities using OWASP API list.",
|
||||||
|
"iconName": "apisec",
|
||||||
|
"categories": [
|
||||||
|
"Code Scanning",
|
||||||
|
"C",
|
||||||
|
"C#",
|
||||||
|
"C++",
|
||||||
|
"Go",
|
||||||
|
"Java",
|
||||||
|
"JavaScript",
|
||||||
|
"Kotlin",
|
||||||
|
"Objective C",
|
||||||
|
"PHP",
|
||||||
|
"Python",
|
||||||
|
"Ruby",
|
||||||
|
"Rust",
|
||||||
|
"Scala",
|
||||||
|
"Swift",
|
||||||
|
"TypeScript"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user