-
Notifications
You must be signed in to change notification settings - Fork 0
ISX-86: Build public images #24
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 |
|---|---|---|
|
|
@@ -23,5 +23,6 @@ jobs: | |
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| packages: write | ||
| with: | ||
| tag: ${{ needs.update.outputs.tag }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ name: Build image from version tag | |
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| packages: write | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Scope the new Granting permissions:
id-token: write
contents: read
- packages: write
+ # keep workflow-level perms minimal; `packages: write` lives at job-levelThen inside jobs:
build:
+ permissions:
+ packages: write
+ # inherits id-token/contents from workflow scope🤖 Prompt for AI Agents |
||
| on: | ||
| push: | ||
| # XXX: Tags pushed via actions (i.e., auto-semver) are not able to trigger additional workflows; | ||
|
|
@@ -21,7 +22,7 @@ on: | |
| jobs: | ||
| build: | ||
| if: github.event_name == 'push' || github.event_name == 'pull_request' | ||
| uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v1 | ||
| uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Pin reusable workflow to a commit SHA for supply-chain safety Tag - uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2
+ # Pinned to the current HEAD of v2 (replace with actual hash)
+ uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@a1b2c3d4e5f6g7h8i9j0🤖 Prompt for AI Agents |
||
| secrets: inherit | ||
| with: | ||
| image-name: ${{ vars.DOCKER_IMAGE_NAME }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,6 +4,7 @@ name: Rebuild image | |||||
| permissions: | ||||||
| id-token: write | ||||||
| contents: read | ||||||
| packages: write | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Restrict permission scope Move 🤖 Prompt for AI Agents |
||||||
| on: | ||||||
| schedule: | ||||||
| - cron: '47 4 1 * *' | ||||||
|
|
@@ -20,7 +21,7 @@ on: | |||||
|
|
||||||
| jobs: | ||||||
| build: | ||||||
| uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v1 | ||||||
| uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Supply-chain hardening: pin the reusable workflow For the same reasons noted in the tag-push workflow, replace - uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@v2
+ uses: discoverygarden/docker-image-reusable-workflows/.github/workflows/build-image.yml@a1b2c3d4e5f6g7h8i9j0📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| secrets: inherit | ||||||
| with: | ||||||
| env: ${{ inputs.env || github.event_name == 'pull_request' && 'dev' || 'prod' }} | ||||||
|
|
||||||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Same permission concern—consider job-scoped
packages: writeAs with the other workflows, limit
packages: writeto the job that actually pushes the image.🤖 Prompt for AI Agents