-
Notifications
You must be signed in to change notification settings - Fork 2
feature/strimzi-operator-connector #220
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
4962b7f
6d25925
4870614
8f7df31
6d4f5eb
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,174 @@ | |||||||||||||||||||||||||||||||||||
| name: Release Docker Hub | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| on: | |||||||||||||||||||||||||||||||||||
| release: | |||||||||||||||||||||||||||||||||||
| types: [published] | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| docker-backend: | |||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| env: | |||||||||||||||||||||||||||||||||||
| DOCKER_IMAGE: radarbase/radar-upload-connect-backend | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v3 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Login to DockerHub | |||||||||||||||||||||||||||||||||||
| uses: docker/login-action@v2 | |||||||||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||||||||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |||||||||||||||||||||||||||||||||||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| # Add Docker labels and tags | |||||||||||||||||||||||||||||||||||
| - name: Docker meta | |||||||||||||||||||||||||||||||||||
| id: docker_meta | |||||||||||||||||||||||||||||||||||
| uses: docker/metadata-action@v4 | |||||||||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||||||||
| images: ${{ env.DOCKER_IMAGE }} | |||||||||||||||||||||||||||||||||||
| tags: | | |||||||||||||||||||||||||||||||||||
| type=semver,pattern={{version}} | |||||||||||||||||||||||||||||||||||
| type=semver,pattern={{major}}.{{minor}} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| # Setup docker build environment | |||||||||||||||||||||||||||||||||||
| - name: Set up QEMU | |||||||||||||||||||||||||||||||||||
| uses: docker/setup-qemu-action@v2 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Set up Docker Buildx | |||||||||||||||||||||||||||||||||||
| uses: docker/setup-buildx-action@v2 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Build backend docker | |||||||||||||||||||||||||||||||||||
| uses: docker/build-push-action@v3 | |||||||||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||||||||
| context: . | |||||||||||||||||||||||||||||||||||
| file: ./radar-upload-backend/Dockerfile | |||||||||||||||||||||||||||||||||||
| platforms: linux/amd64,linux/arm64 | |||||||||||||||||||||||||||||||||||
| push: true | |||||||||||||||||||||||||||||||||||
| tags: ${{ steps.docker_meta.outputs.tags }} | |||||||||||||||||||||||||||||||||||
| # Use runtime labels from docker_meta as well as fixed labels | |||||||||||||||||||||||||||||||||||
| labels: | | |||||||||||||||||||||||||||||||||||
| ${{ steps.docker_meta.outputs.labels }} | |||||||||||||||||||||||||||||||||||
| maintainer=Joris Borgdorff <[email protected]>, Nivethika Mahasivam <[email protected]>, Pauline Conde <[email protected]> | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.description=RADAR-base upload connector backend application | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.authors=Joris Borgdorff <[email protected]>, Nivethika Mahasivam <[email protected]>, Pauline Conde <[email protected]> | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.vendor=RADAR-base | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.licenses=Apache-2.0 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| # Push the backend image on the dev and master branches | |||||||||||||||||||||||||||||||||||
| - name: Pull images | |||||||||||||||||||||||||||||||||||
| run: docker pull ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Inspect docker images | |||||||||||||||||||||||||||||||||||
| run: | | |||||||||||||||||||||||||||||||||||
| docker image inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} | |||||||||||||||||||||||||||||||||||
| docker run --rm ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} curl --version | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| docker-frontend: | |||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| env: | |||||||||||||||||||||||||||||||||||
| DOCKER_IMAGE: radarbase/radar-upload-connect-frontend | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v3 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Login to DockerHub | |||||||||||||||||||||||||||||||||||
| uses: docker/login-action@v2 | |||||||||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||||||||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |||||||||||||||||||||||||||||||||||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Docker meta frontend | |||||||||||||||||||||||||||||||||||
| id: docker_meta | |||||||||||||||||||||||||||||||||||
| uses: docker/metadata-action@v4 | |||||||||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||||||||
| images: ${{ env.DOCKER_IMAGE }} | |||||||||||||||||||||||||||||||||||
| tags: | | |||||||||||||||||||||||||||||||||||
| type=semver,pattern={{version}} | |||||||||||||||||||||||||||||||||||
| type=semver,pattern={{major}}.{{minor}} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| # Setup docker build environment | |||||||||||||||||||||||||||||||||||
| - name: Set up QEMU | |||||||||||||||||||||||||||||||||||
| uses: docker/setup-qemu-action@v2 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Set up Docker Buildx | |||||||||||||||||||||||||||||||||||
| uses: docker/setup-buildx-action@v2 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Build frontend docker | |||||||||||||||||||||||||||||||||||
| uses: docker/build-push-action@v3 | |||||||||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||||||||
| context: ./radar-upload-frontend | |||||||||||||||||||||||||||||||||||
| platforms: linux/amd64,linux/arm64 | |||||||||||||||||||||||||||||||||||
| push: true | |||||||||||||||||||||||||||||||||||
| tags: ${{ steps.docker_meta.outputs.tags }} | |||||||||||||||||||||||||||||||||||
| # Use runtime labels from docker_meta as well as fixed labels | |||||||||||||||||||||||||||||||||||
| labels: | | |||||||||||||||||||||||||||||||||||
| ${{ steps.docker_meta.outputs.labels }} | |||||||||||||||||||||||||||||||||||
| maintainer=Peyman Mohtashami <[email protected]>, Pauline Conde <[email protected]> | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.description=RADAR-base upload connector frontend application | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.authors=Peyman Mohtashami <[email protected]>, Pauline Conde <[email protected]> | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.vendor=RADAR-base | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.licenses=Apache-2.0 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| # Push the backend image on the dev and master branches | |||||||||||||||||||||||||||||||||||
| - name: Pull images | |||||||||||||||||||||||||||||||||||
| run: docker pull ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Inspect docker images | |||||||||||||||||||||||||||||||||||
| run: docker image inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| docker-connector: | |||||||||||||||||||||||||||||||||||
|
Comment on lines
+68
to
+121
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 5 months ago The best way to fix the problem is to add a
Suggested changeset
1
.github/workflows/release-dockerhub.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
|||||||||||||||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| env: | |||||||||||||||||||||||||||||||||||
| DOCKER_IMAGE: radarbase/radar-connect-upload-source | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| steps: | |||||||||||||||||||||||||||||||||||
| - uses: actions/checkout@v3 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Login to DockerHub | |||||||||||||||||||||||||||||||||||
| uses: docker/login-action@v2 | |||||||||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||||||||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |||||||||||||||||||||||||||||||||||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Docker meta | |||||||||||||||||||||||||||||||||||
| id: docker_meta | |||||||||||||||||||||||||||||||||||
| uses: docker/metadata-action@v4 | |||||||||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||||||||
| images: ${{ env.DOCKER_IMAGE }} | |||||||||||||||||||||||||||||||||||
| tags: | | |||||||||||||||||||||||||||||||||||
| type=semver,pattern={{version}} | |||||||||||||||||||||||||||||||||||
| type=semver,pattern={{major}}.{{minor}} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| # Setup docker build environment | |||||||||||||||||||||||||||||||||||
| - name: Set up QEMU | |||||||||||||||||||||||||||||||||||
| uses: docker/setup-qemu-action@v2 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Set up Docker Buildx | |||||||||||||||||||||||||||||||||||
| uses: docker/setup-buildx-action@v2 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Build upload connector docker | |||||||||||||||||||||||||||||||||||
| uses: docker/build-push-action@v3 | |||||||||||||||||||||||||||||||||||
| with: | |||||||||||||||||||||||||||||||||||
| context: . | |||||||||||||||||||||||||||||||||||
| file: ./kafka-connect-upload-source/docker/legacy/Dockerfile | |||||||||||||||||||||||||||||||||||
| platforms: linux/amd64 | |||||||||||||||||||||||||||||||||||
| push: true | |||||||||||||||||||||||||||||||||||
| tags: ${{ steps.docker_meta.outputs.tags }} | |||||||||||||||||||||||||||||||||||
| # Use runtime labels from docker_meta as well as fixed labels | |||||||||||||||||||||||||||||||||||
| labels: | | |||||||||||||||||||||||||||||||||||
| ${{ steps.docker_meta.outputs.labels }} | |||||||||||||||||||||||||||||||||||
| maintainer=Joris Borgdorff <[email protected]>, Nivethika Mahasivam <[email protected]>, Pauline Conde <[email protected]> | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.description=RADAR-base kafka connect upload connector | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.authors=Joris Borgdorff <[email protected]>, Nivethika Mahasivam <[email protected]>, Pauline Conde <[email protected]> | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.vendor=RADAR-base | |||||||||||||||||||||||||||||||||||
| org.opencontainers.image.licenses=Apache-2.0 | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| # Push the backend image on the dev and master branches | |||||||||||||||||||||||||||||||||||
| - name: Pull images | |||||||||||||||||||||||||||||||||||
| run: docker pull ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} | |||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
| - name: Inspect docker images | |||||||||||||||||||||||||||||||||||
| run: docker image inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }} | |||||||||||||||||||||||||||||||||||
|
Comment on lines
+122
to
+174
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 5 months ago To fix the issue, add an explicit
The
Suggested changeset
1
.github/workflows/release-dockerhub.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
|||||||||||||||||||||||||||||||||||
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 5 months ago
To address the issue flagged by CodeQL, the best fix is to add a
permissionsblock at the root of the workflow file to define the least required privileges. This block should specifycontents: read, as the workflow appears to require only read access to the repository contents (e.g., for checking out code). Additionally, permissions required for specific actions (e.g.,packages: writefor pushing Docker images) should be included.Changes must be made in the
.github/workflows/release-dockerhub.ymlfile, adding thepermissionskey at the top level of the workflow. This ensures that all jobs inherit these limited permissions unless overridden.