You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d5c2ae
Browse filesBrowse the repository at this point in the historyBrowse files
fix(release,docker-image): skip release job off the default branch, static native job name, permissions in examples
- release.yml: job-level if on the default branch, concurrency group per ref
and type, so a no-op run of another branch cannot replace a pending release
- docker-image.yml: static job name build-native; skipped jobs no longer show
the unexpanded matrix expression, native runs keep build-native (<platform>)
- README: all caller examples set top-level permissions: {} (checkov CKV2_GHA_1)
Part of Aam-Digital/internal#392
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -61,19 +61,24 @@ on:
61
61
description: The version that was released (empty if none)
62
62
value: ${{ jobs.release.outputs.version }}
63
63
published:
64
-
description: "`true` if a release or prerelease was created, else `false`"
64
+
description: "`true` if a release or prerelease was created, `false` if there was nothing to release (empty if the job was skipped because the ref is not the default branch)"
65
65
value: ${{ jobs.release.outputs.published }}
66
66
67
67
jobs:
68
68
# The job id is part of the check name (`<caller job> / release`). Do not rename it within v1.
69
69
release:
70
+
# Only the default branch is released. Skipping the job on any other ref (instead of a no-op run inside it)
71
+
# also keeps it out of the concurrency group below: GitHub keeps just one *pending* run per group, so a no-op run
72
+
# of a push to another branch would otherwise replace a release that is waiting for the default branch.
73
+
# (`published` is empty, not `false`, when the job is skipped.)
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Shared configuration for the repositories of the Aam-Digital organisation.
5
5
6
6
| Folder / file | What |
7
7
| --- | --- |
8
-
|[`.github/workflows/`](.github/workflows)| Reusable GitHub Actions workflows (container images, releases, image cleanup, PR title and workflow linting). See its [README](.github/workflows/README.md) for inputs, permissions, check names, the release model and how the `v1` tag is moved. |
8
+
|[`.github/workflows/`](.github/workflows)| Reusable GitHub Actions workflows (container images, releases, image cleanup, PR title and workflow linting). See its [README](.github/workflows/README.md) for inputs, permissions, check names, the release model and how the `v1` tag is moved. Callers set top-level `permissions: {}` and grant permissions per job. |
0 commit comments