Repository navigation
ci: CI update. #6
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "pip" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "daily" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| fail-on-severity: 'low' | ||
| allow-licenses: | ||
| - 'BSD-2-Clause' | ||
| - 'BSD-3-Clause' | ||
| - 'BSD-3-Clause-Clear' | ||
| - 'BSD-2-Clause-Views' | ||
| - 'MIT' | ||
| - 'Apache-2.0' | ||
| - 'ISC' | ||
| - 'BlueOak-1.0.0' | ||
| - '0BSD' | ||
| - 'Python-2.0' | ||
| - 'LGPL-3.0' | ||
| - 'MPL-2.0' | ||
| fail-on-scopes: | ||
| - 'runtime' | ||
| - 'development' | ||
| - 'unknown' | ||
| license-check: true | ||
| vulnerability-check: true | ||
| allow-dependencies-licenses: | ||
| - 'pkg:pypi/PyGithub@2.2.0' | ||
| - 'pkg:pypi/psycopg2-binary' |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| name: Check Code Standard | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| run_check_standard: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python_version: ['3.10', '3.13'] | ||
| uses: intel/mfd/.github/workflows/check_code_standard.yml@main | ||
| with: | ||
| REPOSITORY_NAME: ${{ github.event.pull_request.head.repo.full_name }} | ||
| BRANCH_NAME: ${{ github.head_ref }} | ||
| PYTHON_VERSION: ${{ matrix.python_version }} | ||
| Original file line number | Diff line number | Diff line change | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,12 @@ | |||||||||||||||||||||||||||||
| name: Title + Commit Validation | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| on: | |||||||||||||||||||||||||||||
| pull_request: | |||||||||||||||||||||||||||||
| types: [opened, synchronize] | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||||||||
| validate_pr_format: | |||||||||||||||||||||||||||||
| uses: intel/mfd/.github/workflows/check_pr_format.yml@main | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| REPOSITORY_NAME: ${{ github.event.pull_request.head.repo.full_name }} | |||||||||||||||||||||||||||||
| BRANCH_NAME: ${{ github.head_ref }} | |||||||||||||||||||||||||||||
|
Comment on lines
+9
to
+12
Check warningCode 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: {}
Copilot AutofixAI 10 months ago In general, you fix this by explicitly defining a The single best fix here, without changing existing functionality, is to add a minimal permissions:
contents: readbetween the
Suggested changeset
1
.github/workflows/check_pr_format.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
|||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,9 @@ | |||||||||||||||||||||||
| name: Dependency Review | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| on: | |||||||||||||||||||||||
| pull_request: | |||||||||||||||||||||||
| types: [opened, synchronize] | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||
| dependency_review: | |||||||||||||||||||||||
| uses: intel/mfd/.github/workflows/dependency_review.yml@main | |||||||||||||||||||||||
Check warningCode 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: {}
Copilot AutofixAI 10 months ago To fix the problem, explicitly restrict the The single best way to fix this while preserving existing behavior is to add a permissions:
contents: readso that the job explicitly says it only needs read access to repository contents. No additional imports, methods, or other definitions are required; this is purely a YAML configuration change inside the existing workflow.
Suggested changeset
1
.github/workflows/dependency_review.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
|||||||||||||||||||||||
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 10 months ago
In general, the fix is to explicitly specify a minimal
permissionsblock for the workflow or individual jobs so that theGITHUB_TOKENhas only the scopes needed. For a code-style/standards check that runs on pull requests and reuses another workflow, read access to the repository contents is typically sufficient, and no write permissions are required.The best fix here, without altering existing functionality, is to add a
permissionsblock at the workflow root level so it applies to all jobs that don’t override it. Directly under thename:(beforeon:) or directly underon:(but at the root indentation), add:This grants read-only access to repository contents, which is needed for checking code, and avoids any write permissions. Concretely, in
.github/workflows/check_code_standard.yml, insert thepermissionsblock between line 2 (the blank line) and line 3 (on:), adjusting indentation to match root-level keys. No imports or additional methods are needed; this is a pure YAML configuration change.