From ce32a949cbb7f7cc20899cfd5d765bba2e4edb33 Mon Sep 17 00:00:00 2001 From: imissher Date: Sat, 15 Jun 2024 15:56:11 +0530 Subject: [PATCH 1/2] Added Permissions --- .github/workflows/vulnerability_scan.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vulnerability_scan.yml b/.github/workflows/vulnerability_scan.yml index eefe831..f7eb74b 100644 --- a/.github/workflows/vulnerability_scan.yml +++ b/.github/workflows/vulnerability_scan.yml @@ -3,7 +3,12 @@ on: push: branches: [main, golden, develop] pull_request: - types: [opened] + types: [opened] + workflow_dispatch: # Allow manual trigger + +permissions: + pull-requests: write + jobs: scan: runs-on: ubuntu-latest From 936eecf3f3ac610743177d415d80ef4b90d80afc Mon Sep 17 00:00:00 2001 From: imissher Date: Sat, 15 Jun 2024 16:01:04 +0530 Subject: [PATCH 2/2] REMOVED ON PUSH TRIGGER --- .github/workflows/vulnerability_scan.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/vulnerability_scan.yml b/.github/workflows/vulnerability_scan.yml index f7eb74b..6a659d1 100644 --- a/.github/workflows/vulnerability_scan.yml +++ b/.github/workflows/vulnerability_scan.yml @@ -1,14 +1,12 @@ name: "Vulnerability Scan" on: - push: - branches: [main, golden, develop] pull_request: types: [opened] workflow_dispatch: # Allow manual trigger permissions: pull-requests: write - + jobs: scan: runs-on: ubuntu-latest