From 0b7f52848bde3954a6edb4425666b1e98fb567ea Mon Sep 17 00:00:00 2001 From: Reuel Albert <66895085+ReuelAlbert-Dev@users.noreply.github.com> Date: Tue, 5 Aug 2025 16:00:08 +0800 Subject: [PATCH 1/3] Potential fix for code scanning alert no. 6: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/winget.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index d8bde2979..e34e73eb3 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -1,4 +1,6 @@ name: Publish to WinGet +permissions: + contents: read on: release: From 5227e2d76412dba387a916859542f5f21eed40d2 Mon Sep 17 00:00:00 2001 From: Reuel Albert <66895085+ReuelAlbert-Dev@users.noreply.github.com> Date: Tue, 5 Aug 2025 16:01:17 +0800 Subject: [PATCH 2/3] Create devskim.yml --- .github/workflows/devskim.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/devskim.yml diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.yml new file mode 100644 index 000000000..a29f0fd59 --- /dev/null +++ b/.github/workflows/devskim.yml @@ -0,0 +1,34 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: DevSkim + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + schedule: + - cron: '21 12 * * 4' + +jobs: + lint: + name: DevSkim + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run DevSkim scanner + uses: microsoft/DevSkim-Action@v1 + + - name: Upload DevSkim scan results to GitHub Security tab + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: devskim-results.sarif From 2fe0e855bba920b6f3bc8f2b35409f27b134c424 Mon Sep 17 00:00:00 2001 From: Reuel Albert <66895085+ReuelAlbert-Dev@users.noreply.github.com> Date: Mon, 19 Jan 2026 06:50:13 +0800 Subject: [PATCH 3/3] Potential fix for code scanning alert no. 3: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/modern-distributions.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/modern-distributions.yml b/.github/workflows/modern-distributions.yml index 7d6121c6e..2e66709ea 100644 --- a/.github/workflows/modern-distributions.yml +++ b/.github/workflows/modern-distributions.yml @@ -8,6 +8,8 @@ jobs: check: name: Validate tar based distributions changes runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Checkout repo uses: actions/checkout@v4