Skip to content

Commit

Permalink
ci: Create ethicalcheck.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
bush1D3v authored Jun 15, 2024
1 parent fdb1aee commit c5f6dc1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ethicalcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: EthicalCheck-Workflow

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '35 20 * * 0'

permissions:
contents: read

jobs:
Trigger_EthicalCheck:
permissions:
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
runs-on: ubuntu-22.04

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://localhost:8080/api-docs/openapi.json"

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note

Do not leave debug code in production
email: "victor.jose.lopes.navarro@gmail.com"
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 comments on commit c5f6dc1

Please sign in to comment.