-
Notifications
You must be signed in to change notification settings - Fork 66
ci: harden GitHub Actions workflows #396
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
67dc26a
02a8271
725d431
b648e62
2742018
ff2f9e7
7a56e02
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 | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,11 +13,7 @@ concurrency: | |||||||
| group: publish-${{ github.workflow }}-${{ github.ref }} | ||||||||
| cancel-in-progress: true | ||||||||
|
|
||||||||
| permissions: | ||||||||
| contents: read | ||||||||
| packages: write | ||||||||
| id-token: write | ||||||||
| attestations: write | ||||||||
| permissions: {} | ||||||||
|
|
||||||||
| env: | ||||||||
| IMAGE_DESCRIPTION: Instantly publish your own books on the web for free, no publisher required. | ||||||||
|
|
@@ -28,6 +24,9 @@ jobs: | |||||||
| name: Build and push image (${{ matrix.arch }}) | ||||||||
| runs-on: ${{ matrix.runner }} | ||||||||
| timeout-minutes: 45 | ||||||||
|
||||||||
| timeout-minutes: 45 | |
| timeout-minutes: 45 | |
| if: github.event_name != 'pull_request' |
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.
The build job needs packages: write because it pushes images on non-PR events (tag pushes). The workflow uses a single job definition for both paths. Splitting by event trigger would add complexity without meaningful security benefit since the token is scoped to this repo's packages.
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.
PR description says a 10-day Dependabot cooldown, but this bundler entry sets shorter values (e.g., default/major 7 days, minor 3, patch 2). Please align the configuration with the stated 10-day cooldown (or update the PR description if 7/3/2 is intended).