Skip to content

Commit

Permalink
ci(github): update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pivoshenko committed Nov 16, 2022
1 parent 31a7d0a commit 84fe21d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 21 deletions.
48 changes: 27 additions & 21 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ name: CodeQL

on:
push:
branches:
- main
branches: [ "main" ]

pull_request:
branches:
- main
branches: [ "main" ]

jobs:
analyze:
Expand All @@ -23,21 +21,29 @@ jobs:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'python' ]

steps:
- name: Checkout repository
id: checkout-repository
uses: actions/checkout@v3

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

- name: Autobuild
id: autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL analysis
id: perform-codeql-analysis
uses: github/codeql-action/analyze@v2
- name: Checkout repository
id: checkout-repository
uses: actions/checkout@v3

- name: Initialize CodeQL
id: initialize-codeql
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
id: autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL analysis
id: perform-codeql-analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
27 changes: 27 additions & 0 deletions .github/workflows/dependency-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: /~https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement

name: Dependency Review

on:
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
id: checkout-repository
uses: actions/checkout@v3

- name: Dependency review
id: dependency-review
uses: actions/dependency-review-action@v2

0 comments on commit 84fe21d

Please sign in to comment.