Skip to content

Commit

Permalink
ci: ignore tests in CodeQL scan and add missing permission restrictio…
Browse files Browse the repository at this point in the history
…ns (#253)

ignore tests in CodeQL scan and add missing permission restrictions

Signed-off-by: gruebel <[email protected]>
  • Loading branch information
gruebel authored Jan 6, 2024
1 parent 3b6204d commit 49aae78
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: "CodeQL config"

paths-ignore:
- tests
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -64,6 +67,7 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: python
config-file: ./.github/codeql-config.yml

- name: Install dependencies
run: pip install -r requirements.txt
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ on:
- edited
- synchronize

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 49aae78

Please sign in to comment.