-
Notifications
You must be signed in to change notification settings - Fork 2
Bump Go version to 1.25 and fix broken GitHub CI #43
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: master
Are you sure you want to change the base?
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 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,12 +2,125 @@ | ||||||||||||||||||||||||||||
| on: | |||||||||||||||||||||||||||||
| push: | |||||||||||||||||||||||||||||
| branches: | |||||||||||||||||||||||||||||
| - master | |||||||||||||||||||||||||||||
| - main | |||||||||||||||||||||||||||||
| pull_request: | |||||||||||||||||||||||||||||
| branches: | |||||||||||||||||||||||||||||
| - master | |||||||||||||||||||||||||||||
| - main | |||||||||||||||||||||||||||||
| env: | |||||||||||||||||||||||||||||
| GOPATH: /home/runner/go/ | |||||||||||||||||||||||||||||
| GO_VERSION: 1.25 | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||||||||
| build-kas: | |||||||||||||||||||||||||||||
| name: Build kas | |||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| - uses: actions/setup-go@v4 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version: 1.25 | |||||||||||||||||||||||||||||
| - run: PATH=$PATH:$GOPATH/bin TARGET_DIRECTORY=. make build-kas | |||||||||||||||||||||||||||||
| build-agentk: | |||||||||||||||||||||||||||||
| name: Build agentk | |||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| - uses: actions/setup-go@v4 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version: 1.25 | |||||||||||||||||||||||||||||
| - run: PATH=$PATH:$GOPATH/bin TARGET_DIRECTORY=. make build-agentk | |||||||||||||||||||||||||||||
| image-kas: | |||||||||||||||||||||||||||||
| name: Build kas image | |||||||||||||||||||||||||||||
|
Comment on lines
+24
to
+33
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: {contents: read}
Copilot AutofixAI 12 days ago To fix this issue, add an explicit
Suggested changeset
1
.github/workflows/ci.yaml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
|||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| - run: PATH=$PATH:$GOPATH/bin TARGET_DIRECTORY=. make docker-kas | |||||||||||||||||||||||||||||
| image-agentk: | |||||||||||||||||||||||||||||
| name: Build agentk image | |||||||||||||||||||||||||||||
|
Comment on lines
+34
to
+39
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: {contents: read}
Copilot AutofixAI 12 days ago To fix this issue, you should add a
Suggested changeset
1
.github/workflows/ci.yaml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
|||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| - run: PATH=$PATH:$GOPATH/bin TARGET_DIRECTORY=. make docker-agentk | |||||||||||||||||||||||||||||
| test: | |||||||||||||||||||||||||||||
| name: Unit test | |||||||||||||||||||||||||||||
|
Comment on lines
+40
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: {contents: read}
Copilot AutofixAI 12 days ago To address this issue, you should explicitly specify a Make this change directly below the workflow's
Suggested changeset
1
.github/workflows/ci.yaml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
|||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| - uses: actions/setup-go@v4 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version: 1.25 | |||||||||||||||||||||||||||||
| - run: PATH=$PATH:$GOPATH/bin make test | |||||||||||||||||||||||||||||
| lint: | |||||||||||||||||||||||||||||
| name: Lint | |||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||
|
Comment on lines
+46
to
+55
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: {contents: read}
Copilot AutofixAI 12 days ago To fix the issue, you should explicitly set the
Suggested changeset
1
.github/workflows/ci.yaml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
|||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| - uses: actions/setup-go@v5 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version: 1.25 | |||||||||||||||||||||||||||||
| - uses: golangci/[email protected] | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| version: v2.4.0 | |||||||||||||||||||||||||||||
| publish-debug-docker: | |||||||||||||||||||||||||||||
| name: Build and push debug kas containers | |||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||
| permissions: | |||||||||||||||||||||||||||||
|
Comment on lines
+56
to
+67
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: {contents: read}
Copilot AutofixAI 12 days ago To fix this issue, add a
Suggested changeset
1
.github/workflows/ci.yaml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
|||||||||||||||||||||||||||||
| contents: 'read' | |||||||||||||||||||||||||||||
| id-token: 'write' | |||||||||||||||||||||||||||||
| packages: 'write' | |||||||||||||||||||||||||||||
| strategy: | |||||||||||||||||||||||||||||
| matrix: | |||||||||||||||||||||||||||||
| image: [kas-debug, agentk-debug] | |||||||||||||||||||||||||||||
| include: | |||||||||||||||||||||||||||||
| - image: kas-debug | |||||||||||||||||||||||||||||
| dockerfile: ./build/docker/kas.debug.Dockerfile | |||||||||||||||||||||||||||||
| - image: agentk-debug | |||||||||||||||||||||||||||||
| dockerfile: ./build/docker/agentk.debug.Dockerfile | |||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - name: Checkout | |||||||||||||||||||||||||||||
| uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| fetch-depth: 0 | |||||||||||||||||||||||||||||
| - name: Docker meta | |||||||||||||||||||||||||||||
| id: meta | |||||||||||||||||||||||||||||
| uses: docker/metadata-action@v5 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| images: | | |||||||||||||||||||||||||||||
| ghcr.io/pluralsh/${{ matrix.image }} | |||||||||||||||||||||||||||||
| tags: | | |||||||||||||||||||||||||||||
| type=sha | |||||||||||||||||||||||||||||
| type=ref,event=pr | |||||||||||||||||||||||||||||
| type=ref,event=branch | |||||||||||||||||||||||||||||
| - name: Set up QEMU | |||||||||||||||||||||||||||||
| uses: docker/setup-qemu-action@v3 | |||||||||||||||||||||||||||||
| - name: Set up Docker Buildx | |||||||||||||||||||||||||||||
| uses: docker/setup-buildx-action@v3 | |||||||||||||||||||||||||||||
| - name: Login to Container registry | |||||||||||||||||||||||||||||
| uses: docker/login-action@v3 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| registry: ghcr.io | |||||||||||||||||||||||||||||
| username: ${{ github.repository_owner }} | |||||||||||||||||||||||||||||
| password: ${{ secrets.GITHUB_TOKEN }} | |||||||||||||||||||||||||||||
| - name: Login to Docker | |||||||||||||||||||||||||||||
| uses: docker/login-action@v3 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| username: mjgpluralsh | |||||||||||||||||||||||||||||
| password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |||||||||||||||||||||||||||||
| - name: Build and push | |||||||||||||||||||||||||||||
| uses: docker/build-push-action@v5 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| context: "." | |||||||||||||||||||||||||||||
| file: "${{ matrix.dockerfile }}" | |||||||||||||||||||||||||||||
| push: true | |||||||||||||||||||||||||||||
| tags: ${{ steps.meta.outputs.tags }} | |||||||||||||||||||||||||||||
| labels: ${{ steps.meta.outputs.labels }} | |||||||||||||||||||||||||||||
| platforms: linux/amd64,linux/arm64 | |||||||||||||||||||||||||||||
| cache-from: type=gha | |||||||||||||||||||||||||||||
| cache-to: type=gha,mode=max | |||||||||||||||||||||||||||||
| build-args: | | |||||||||||||||||||||||||||||
| GIT_COMMIT=${{ github.sha }} | |||||||||||||||||||||||||||||
| GOPROXY: "https://proxy.golang.org" | |||||||||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||||||||
| build-kas: | |||||||||||||||||||||||||||||
|
|
@@ -16,6 +129,9 @@ | ||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| - uses: actions/setup-go@v4 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version: 1.25 | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version-file: go.mod | |||||||||||||||||||||||||||||
| check-latest: true | |||||||||||||||||||||||||||||
|
|
@@ -26,6 +142,9 @@ | ||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| - uses: actions/setup-go@v4 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version: 1.25 | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version-file: go.mod | |||||||||||||||||||||||||||||
| check-latest: true | |||||||||||||||||||||||||||||
|
|
@@ -48,6 +167,9 @@ | ||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||
| - uses: actions/checkout@v4 | |||||||||||||||||||||||||||||
| - uses: actions/setup-go@v4 | |||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version: 1.25 | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||
| go-version-file: go.mod | |||||||||||||||||||||||||||||
| check-latest: true | |||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 12 days ago
To resolve the issue, explicitly set a
permissionsblock at the workflow level or for each job, specifying the minimum required access, namely'contents: read'. In this context, it's best to add a global workflow-levelpermissionsblock to.github/workflows/ci.yamlimmediately after thenamekey and beforeon:. This applies to all jobs unless overridden and ensures that only the minimal repository content read access is provided to theGITHUB_TOKEN, mitigating risk in all contained jobs. No changes to steps or functionality are required, only the addition of the block.