-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): add ketryx reporting workflow for compliance and tracking #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces Ketryx integration for compliance reporting and updates CI/CD configurations. The changes include a new reusable Ketryx workflow, modifications to the main CI/CD pipeline to incorporate Ketryx reporting, and an automated update to license attributions.
- Adds a new reusable Ketryx reporting workflow for compliance tracking
- Updates CI/CD pipeline to include Ketryx reporting step and reorganizes job dependencies
- Updates ATTRIBUTIONS.md with corrected license texts and formatting
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
.github/workflows/_ketryx_report.yml |
New reusable workflow for Ketryx compliance reporting with placeholder test execution |
.github/workflows/ci-cd.yml |
Removes scheduled runs and CodeQL job, adds Ketryx reporting integration, updates SonarQube action version, changes NPM token references |
ATTRIBUTIONS.md |
Automated license attribution updates with corrected license texts and copyright notices |
ed07ba1 to
25ceaf9
Compare
c9dfdce to
9efee2d
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #34 +/- ##
=======================================
Coverage 95.16% 95.16%
=======================================
Files 9 9
Lines 1034 1034
Branches 141 141
=======================================
Hits 984 984
Misses 50 50
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
7e01ed4 to
54b1a4f
Compare
cadb918 to
1ce3f25
Compare
f82f032 to
e01da1f
Compare
e01da1f to
d37ea65
Compare
| workflow_dispatch: | ||
| inputs: | ||
| branch: | ||
| description: 'Branch to test (leave empty for main)' | ||
| required: false | ||
| type: string | ||
| default: '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch to test (leave empty for main)' | |
| required: false | |
| type: string | |
| default: '' |
| push: | ||
| tags: | ||
| - 'sdk-v*' # Matches semantic-release SDK tags | ||
| - 'cli-v*' # Matches semantic-release CLI tags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| push: | |
| tags: | |
| - 'sdk-v*' # Matches semantic-release SDK tags | |
| - 'cli-v*' # Matches semantic-release CLI tags |
047af32 to
de762c9
Compare
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Download SDK test results | ||
| uses: actions/download-artifact@v4 | ||
| continue-on-error: true | ||
| with: | ||
| name: test-results-sdk | ||
| path: test-results/sdk/ | ||
|
|
||
| - name: Download CLI test results | ||
| uses: actions/download-artifact@v4 | ||
| continue-on-error: true | ||
| with: | ||
| name: test-results-cli | ||
| path: test-results/cli/ | ||
|
|
||
| - name: Report to Ketryx | ||
| uses: Ketryx/ketryx-github-action@v1.4.0 | ||
| with: | ||
| project: ${{ secrets.KETRYX_PROJECT }} | ||
| api-key: ${{ secrets.KETRYX_API_KEY }} | ||
| build-name: ${{ inputs.build-name }} | ||
| test-junit-path: test-results/**/*.xml |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 1 day ago
To fix the issue, explicitly set the permissions: key in the workflow, limiting GITHUB_TOKEN to the minimal privileges required. Since this workflow only downloads artifacts and calls an external action, it does not require any write access to the repository contents or metadata. The minimal required permission is likely contents: read. Insert permissions: contents: read at the top level of the workflow, below the name key but above on:, so that the permission applies to all jobs within the workflow. No other changes are required; do not grant broader access unless a particular step or action clearly requires it.
-
Copy modified lines R2-R3
| @@ -1,4 +1,6 @@ | ||
| name: 'Ketryx report' | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_call: |
de762c9 to
9414324
Compare
9414324 to
8da4df4
Compare
|



Description
Changes:
Workflow Triggers:
Technical Details: