Skip to content

Commit

Permalink
give only the necessary permissions to CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere committed Aug 27, 2024
1 parent 02bea01 commit 1f1b87c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/code-ql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
security-events: write

# required to fetch internal or private CodeQL packs
packages: read
#packages: read

# only required for workflows in private repositories
actions: read
contents: read
#actions: read
#contents: read

strategy:
fail-fast: false
Expand Down Expand Up @@ -76,13 +76,13 @@ jobs:
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- name: Create Build Environment
- name: Create Build Environment
if: matrix.build-mode == 'manual'
run: >
sudo apt-get update &&
sudo apt install -y cmake gcc-mingw-w64-i686 g++-mingw-w64-i686 pkg-config-mingw-w64-i686 libz-mingw-w64-dev gettext dpkg-dev wget git sudo &&
sudo rm /usr/i686-w64-mingw32/lib/libz.dll.a &&
sudo Packaging/windows/mingw-prep.sh
run: >
sudo apt-get update &&
sudo apt install -y cmake gcc-mingw-w64-i686 g++-mingw-w64-i686 pkg-config-mingw-w64-i686 libz-mingw-w64-dev gettext dpkg-dev wget git sudo &&
sudo rm /usr/i686-w64-mingw32/lib/libz.dll.a &&
sudo Packaging/windows/mingw-prep.sh
- name: Build
if: matrix.build-mode == 'manual'
Expand Down

0 comments on commit 1f1b87c

Please sign in to comment.