Skip to content

Commit

Permalink
fix: added codeql permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed May 4, 2022
1 parent a699dd2 commit 0909ed4
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions .github/workflows/service-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,30 @@ jobs:
run: echo $PIPELINE_SETUP


#--------------------------------------------------#
# Static-Analysis #
#--------------------------------------------------#
Static-Analysis:
runs-on: ubuntu-latest
needs: Setup

permissions:
security-events: write

steps:

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript, python

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1


#--------------------------------------------------#
# Tests: Node.js #
#--------------------------------------------------#
Expand Down Expand Up @@ -157,22 +181,6 @@ jobs:
- run: npm run lint --if-present
- run: npm run test --if-present

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
category: javascript-${{ matrix.node-version }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: javascript-${{ matrix.node-version }}

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
category: javascript-${{ matrix.node-version }}


#--------------------------------------------------#
# Tests: Python #
Expand Down

0 comments on commit 0909ed4

Please sign in to comment.