Skip to content

Conversation

@mridulgain
Copy link

Add scan for SOC2 audit in main. (#82)

  • added action file for soc2 scan report

  • Update security-scan.yml with creation of report PR only on push event

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Additional information

Special notes for your reviewer

* added action file for soc2 scan report

* Update security-scan.yml with creation of report PR only on push event
Comment on lines +12 to +22
name: Shared Setup
runs-on: ubuntu-latest
outputs:
go-version: '1.22'
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Export Go Version
run: echo "go-version=1.22" >> $GITHUB_OUTPUT

gosec_scan:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 3 months ago

To fix this problem, add an explicit permissions key with the minimum required privileges to the setup job of the workflow. Since setup only checks out code and writes simple outputs (does not make pull requests or repository modifications), it only requires contents: read at most. This is best done by adding a permissions: block right under the runs-on line in the setup job definition. No other functional changes are required, and this will not alter the behavior of the job.


Suggested changeset 1
.github/workflows/security-scan.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml
--- a/.github/workflows/security-scan.yml
+++ b/.github/workflows/security-scan.yml
@@ -11,6 +11,8 @@
   setup:
     name: Shared Setup
     runs-on: ubuntu-latest
+    permissions:
+      contents: read
     outputs:
       go-version: '1.22'
     steps:
EOF
@@ -11,6 +11,8 @@
setup:
name: Shared Setup
runs-on: ubuntu-latest
permissions:
contents: read
outputs:
go-version: '1.22'
steps:
Copilot is powered by AI and may make mistakes. Always verify output.
@mridulgain mridulgain requested a review from a team September 5, 2025 11:27
@bito-code-review
Copy link

bito-code-review bot commented Sep 5, 2025

Bito Automatic Review Skipped - Files Excluded

Bito didn't auto-review this change because all changed files are in the exclusion list for automatic reviews. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the excluded files settings here, or contact your Bito workspace admin at [email protected].

@indradhanush indradhanush merged commit 15272c5 into pcd-v2025.8 Sep 5, 2025
182 of 188 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants