-
Notifications
You must be signed in to change notification settings - Fork 0
ci: update workflows to use main reusable workflows #5
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 | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,5 +6,5 @@ | ||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||
| publish-snapshot: | |||||||||||||||||||||||
| uses: eclipse-keyple/keyple-actions/.github/workflows/reusable-publish-snapshot.yml@publish-snapshot-v1 | |||||||||||||||||||||||
| secrets: inherit | |||||||||||||||||||||||
| uses: eclipse-keyple/keyple-actions/.github/workflows/reusable-publish-snapshot.yml@main # NOSONAR - Same organization, trusted source | |||||||||||||||||||||||
| secrets: inherit # NOSONAR - Same organization, trusted source | |||||||||||||||||||||||
|
Comment on lines
+9
to
+10
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 about 1 month ago To resolve the problem, you should add a permissions:
contents: readThis ensures that, unless a job overrides it, all jobs in the workflow (here the single reusable workflow job) receive this minimal permission.
Suggested changeset
1
.github/workflows/publish-snapshot.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 |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| group = org.eclipse.keyple | ||
| title = Keyple Plugin Storage Card API | ||
| description = API dedicated to standardize communication between Keyple plugins and APDU interpreters for storage card processing | ||
| version = 1.0.0-SNAPSHOT | ||
| version = 1.0.1-SNAPSHOT | ||
|
|
||
| # Java Configuration | ||
| javaSourceLevel = 1.8 | ||
|
|
||
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI about 1 month ago
To fix this issue, you should add a
permissions:block at the top-level of the workflow, right after thename:line and before theon:key. This permissions block should specify the least privilege required for the job. As a minimal starting point, setcontents: read, which is the safest and most restrictive option for the majority of CI jobs. If more granular permissions are needed, you can adjust accordingly. In this case, since the job only triggers a reusable workflow for building and testing,contents: readshould generally suffice.You only need to edit the
.github/workflows/build-and-test.ymlfile.No imports or external definitions are required for this change.