Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add audit workflow #2968

Merged
merged 8 commits into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/yarn_audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# When the action is executed, it runs yarn audit command in all the paths that is mentioned in the input. The exit codes of the commands are compared and if it is greater than 7 (only high severity as of now), the action will try to fetch the open issues in the repo with the label provided in the input. The label is mandatory to prevent from creating duplicate issues. If there are no open issues with the given label in open state, the action will try to create a Github Issue with the details provided in the input.

name: Full Clients Audit

on:
push:
branches: [development, development_2.6]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should remove development_2.6 as it's only a temporary branch and will be deleted when merged to the development branch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same branch is used in all workflows. We can update all workflows once it's merged.

pull_request:
branches: [development, development_2.6]

jobs:
audit-and-open-issue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Yarn Audit
uses: pragatheeswarans/[email protected]
with:
token: ${{ github.token }}
label: 'audit'
title: "${{ github.workflow }}: Critical Security Vulnerability Identified"
description: 'High severity issues are identified in the repo.'
paths: |
.
Loading