mirror of
https://github.com/revanced/revanced-releases-api.git
synced 2025-06-12 20:57:37 +02:00
Squashed commit of the following:
commitc44da582e8
Author: Alexandre Teles <alexandre.teles@ufba.br> Date: Fri Sep 30 20:53:36 2022 -0300 fix: remove trivy until we figure it out commit073dd468c2
Author: Alexandre Teles <alexandre.teles@ufba.br> Date: Fri Sep 30 20:46:58 2022 -0300 chore: remove unused files commit2d6ec6d5e0
Author: Alexandre Teles <alexandre.teles@ufba.br> Date: Fri Sep 30 20:42:34 2022 -0300 fix: try to fix trivy scanner commit2c83789cd7
Author: Alexandre Teles <alexandre.teles@ufba.br> Date: Fri Sep 30 20:11:59 2022 -0300 feat: add trivy scanner to CI commit181653ad68
Author: Alexandre Teles <alexandre.teles@ufba.br> Date: Fri Sep 30 19:52:35 2022 -0300 fix: use correct py version for workflows commit6625718f5a
Author: Alexandre Teles <alexandre.teles@ufba.br> Date: Fri Sep 30 19:44:17 2022 -0300 fix: inform py version to CodeQL commit8c9696bf0e
Author: Alexandre Teles <alexandre.teles@ufba.br> Date: Fri Sep 30 19:23:47 2022 -0300 feature: add new workflows
This commit is contained in:
59
.github/workflows/codeql_analysis.yml
vendored
Normal file
59
.github/workflows/codeql_analysis.yml
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
name: "CodeQL"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev" ]
|
||||
pull_request:
|
||||
branches: [ "dev" ]
|
||||
schedule:
|
||||
- cron: '21 13 * * 3'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
default_branch: dev
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: [ 'python' ]
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ env.default_branch }}
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10.7'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
if [ -f requirements.txt ];
|
||||
then pip install -r requirements.txt;
|
||||
fi
|
||||
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
setup-python-dependencies: false
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
Reference in New Issue
Block a user