Skip to content

Commit 6e3bd5f

Browse files
committed
Add packge permissions
1 parent d2f6e78 commit 6e3bd5f

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/static_analysis.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
jobs:
55
polaris-scan:
66
runs-on: [ ubuntu-latest]
7+
permissions:
8+
packages: write
79
env:
810
VCPKG_NUGET_USER: ${{secrets.VCPKG_NUGET_USER || github.repository_owner}}
911
VCPKG_NUGET_TOKEN: ${{secrets.VCPKG_NUGET_TOKEN || secrets.GITHUB_TOKEN}}
10-
VCPKG_MAN_NUGET_USER: ${{secrets.VCPKG_MAN_NUGET_USER}} # For forks to download pre-compiled dependencies from the Man repo
11-
VCPKG_MAN_NUGET_TOKEN: ${{secrets.VCPKG_MAN_NUGET_TOKEN}}
1212
steps:
1313
- name: Checkout Source
1414
uses: actions/checkout@v4
1515
with:
1616
submodules: recursive
17+
fetch-depth: 0
1718

1819
- name: Setup build dependencies
1920
run: |
@@ -30,21 +31,17 @@
3031
echo -e "VCPKG_BINARY_SOURCES=$VCPKG_BINARY_SOURCES
3132
VCPKG_ROOT=$PLATFORM_VCPKG_ROOT" | tee -a $GITHUB_ENV
3233
33-
- name: Prepare C++ compilation env
34-
run: . build_tooling/prep_cpp_build.sh
35-
3634
- name: Get CMake
37-
uses: lukka/get-cmake@v3.29.2
35+
uses: lukka/get-cmake@latest
3836

3937
- name: CMake configure
4038
uses: lukka/[email protected]
4139
with:
4240
cmakeListsTxtPath: ${{github.workspace}}/cpp/CMakeLists.txt
4341
configurePreset: linux-debug
44-
configurePresetAdditionalArgs: "['-DVCPKG_INSTALL_OPTIONS=--clean-after-build', '-DCMAKE_CXX_COMPILER=g++-10', '-DCMAKE_C_COMPILER=gcc-10', '-DVCPKG_INSTALL_OPTIONS=--debug', '-DCMAKE_MODULE_PATH=cpp/CMake']"
42+
configurePresetAdditionalArgs: "['-DVCPKG_INSTALL_OPTIONS=--clean-after-build']"
4543

4644
- name: Polaris PR Scan
47-
if: ${{ github.event_name == 'pull_request' }}
4845
uses: synopsys-sig/[email protected]
4946
with:
5047
polaris_server_url: ${{ vars.POLARIS_SERVER_URL }}

0 commit comments

Comments
 (0)