-
Notifications
You must be signed in to change notification settings - Fork 1
1.0.8.3 code #66
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
base: main
Are you sure you want to change the base?
1.0.8.3 code #66
Changes from all commits
3b204ab
bd48733
34d3952
4d46234
00ec266
f1631a7
b8b703a
30c6d9f
f65563e
d4cbb4f
e5063e8
e7b275b
79e1916
e978653
5adce79
1e414f0
347ad7f
416f28b
13d821d
433357b
b8d2994
945fc19
f147f3c
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 |
|---|---|---|
| @@ -1,11 +1,17 @@ | ||
| --- | ||
| name: Manual Build & Push | ||
| on: | ||
| workflow_dispatch: | ||
| workflow_dispatch: | ||
| inputs: | ||
| platforms: | ||
| description: 'The platforms for which the Docker image should be built. If not specified, defaults to linux/amd64.' | ||
| required: false | ||
| default: 'linux/amd64' | ||
| jobs: | ||
| build-push: | ||
| uses: kbase/.github/.github/workflows/reusable_build-push.yml@main | ||
| with: | ||
| name: '${{ github.event.repository.name }}-develop' | ||
| tags: br-${{ github.ref_name }} | ||
| platforms: ${{ github.event.inputs.platforms }} | ||
| secrets: inherit |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,48 @@ | ||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||
| name: Pull Request Build, Tag, & Push | ||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||
| - develop | ||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||
| - master | ||||||||||||||||||||||||||
| types: | ||||||||||||||||||||||||||
| - opened | ||||||||||||||||||||||||||
| - reopened | ||||||||||||||||||||||||||
| - synchronize | ||||||||||||||||||||||||||
| - closed | ||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||
| build-develop-open: | ||||||||||||||||||||||||||
| if: github.base_ref == 'develop' && github.event.pull_request.merged == false | ||||||||||||||||||||||||||
| uses: kbase/.github/.github/workflows/reusable_build.yml@main | ||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||
| platforms: "linux/amd64" | ||||||||||||||||||||||||||
| secrets: inherit | ||||||||||||||||||||||||||
| build-develop-merge: | ||||||||||||||||||||||||||
| if: github.base_ref == 'develop' && github.event.pull_request.merged == true | ||||||||||||||||||||||||||
| uses: kbase/.github/.github/workflows/reusable_build-push.yml@main | ||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||
| name: '${{ github.event.repository.name }}-develop' | ||||||||||||||||||||||||||
| tags: pr-${{ github.event.number }},latest | ||||||||||||||||||||||||||
| platforms: "linux/amd64" | ||||||||||||||||||||||||||
| secrets: inherit | ||||||||||||||||||||||||||
| build-main-open: | ||||||||||||||||||||||||||
|
Comment on lines
+22
to
+29
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 3 months ago To fix the problem, we must add a For most build/test workflows that do not require write-level tokens, the minimal default is usually: permissions:
contents: readIf the workflow (or any called workflow) needs to create or comment on pull requests, permissions:
contents: readThis can later be adjusted as needed if more is required, but starting with a minimal read-only approach is best. Summary of Change: permissions:
contents: readimmediately after the
Suggested changeset
1
.github/workflows/pr_build.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
||||||||||||||||||||||||||
| if: (github.base_ref == 'main' || github.base_ref == 'master') && github.event.pull_request.merged == false | ||||||||||||||||||||||||||
| uses: kbase/.github/.github/workflows/reusable_build-push.yml@main | ||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||
| name: '${{ github.event.repository.name }}' | ||||||||||||||||||||||||||
| tags: pr-${{ github.event.number }} | ||||||||||||||||||||||||||
| platforms: "linux/amd64" | ||||||||||||||||||||||||||
| secrets: inherit | ||||||||||||||||||||||||||
| build-main-merge: | ||||||||||||||||||||||||||
|
Comment on lines
+30
to
+37
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 3 months ago To fix the problem, you should add a permissions:
contents: readIf you later find that a particular job requires additional permissions (such as How to implement:
Suggested changeset
1
.github/workflows/pr_build.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
||||||||||||||||||||||||||
| if: (github.base_ref == 'main' || github.base_ref == 'master') && github.event.pull_request.merged == true | ||||||||||||||||||||||||||
| uses: kbase/.github/.github/workflows/reusable_build-push.yml@main | ||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||
| name: '${{ github.event.repository.name }}' | ||||||||||||||||||||||||||
| tags: pr-${{ github.event.number }},latest-rc | ||||||||||||||||||||||||||
| platforms: "linux/amd64" | ||||||||||||||||||||||||||
| secrets: inherit | ||||||||||||||||||||||||||
| trivy-scans: | ||||||||||||||||||||||||||
|
Comment on lines
+38
to
+45
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 3 months ago To fix this issue, add a Change to be made:
Make this change in You do not need to modify any code outside this snippet.
Suggested changeset
1
.github/workflows/pr_build.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
||||||||||||||||||||||||||
| if: (github.base_ref == 'develop' || github.base_ref == 'main' || github.base_ref == 'master' ) && github.event.pull_request.merged == false | ||||||||||||||||||||||||||
| uses: kbase/.github/.github/workflows/reusable_trivy-scans.yml@main | ||||||||||||||||||||||||||
| secrets: inherit | ||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| --- | ||
| name: Release - Build & Push Image | ||
| on: | ||
| release: | ||
| branches: | ||
| - main | ||
| - master | ||
| types: [ published ] | ||
| jobs: | ||
| check-source-branch: | ||
| uses: kbase/.github/.github/workflows/reusable_validate-branch.yml@main | ||
| with: | ||
| build_branch: '${{ github.event.release.target_commitish }}' | ||
| validate-release-tag: | ||
| needs: check-source-branch | ||
| uses: kbase/.github/.github/workflows/reusable_validate-release-tag.yml@main | ||
| with: | ||
| release_tag: '${{ github.event.release.tag_name }}' | ||
| build-push: | ||
| needs: validate-release-tag | ||
| uses: kbase/.github/.github/workflows/reusable_build-push.yml@main | ||
| with: | ||
| name: '${{ github.event.repository.name }}' | ||
| tags: '${{ github.event.release.tag_name }},latest' | ||
| platforms: "linux/amd64" | ||
| secrets: inherit |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 3 months ago
To remediate the problem, the workflow file
.github/workflows/pr_build.ymlshould define apermissionsblock at either the global (workflow) scope or for each individual job. The least privilege setting, unless jobs require specific write access, is typicallycontents: read. Since this workflow appears to interact with PRs (labels such as "Tag", "Push", and the use of PR events), it is safest to grantcontents: readglobally. If specific jobs require write permissions for actions like tagging or merging, their associated jobs can be modified later, but the recommended minimum is:This should be added at the workflow root (just after the
name:oron:key), so that all jobs default to these permissions unless specifically overridden. No changes to imports or other definitions are needed.