Repository navigation
fix: no build env var shares a name with a secret id (1.39.4, RT#1550) #121
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| # | ||
| # Callers pin this file to a release tag; copy examples/container.yml: | ||
| # | ||
| # uses: crunchtools/constitution/.github/workflows/[email protected].3 | ||
| # uses: crunchtools/constitution/.github/workflows/[email protected].4 | ||
| # | ||
| # One build per change. A pull request builds its head commit, gates that | ||
| # digest and marks it gated-<sha>. The merge to the default branch does NOT | ||
|
|
@@ -175,7 +175,7 @@ jobs: | |
| - uses: actions/checkout@v7 | ||
| with: | ||
| repository: crunchtools/constitution | ||
| ref: ${{ inputs.constitution-ref || 'v1.39.3' }} | ||
| ref: ${{ inputs.constitution-ref || 'v1.39.4' }} | ||
| path: .constitution | ||
| persist-credentials: false | ||
| - id: r | ||
|
|
@@ -222,8 +222,11 @@ jobs: | |
| FORMAT: ${{ inputs.format }} | ||
| SOURCE: ${{ github.server_url }}/${{ github.repository }} | ||
| RHSM: ${{ inputs.rhsm }} | ||
| RHSM_ACTIVATION_KEY: ${{ secrets.RHSM_ACTIVATION_KEY }} | ||
| RHSM_ORG_ID: ${{ secrets.RHSM_ORG_ID }} | ||
| # Not named after the secret ids: podman 4.9 (the runner's) mounts | ||
| # a secret whose id matches an environment variable empty, ignoring | ||
| # src=, which failed every id=RHSM_ACTIVATION_KEY build. | ||
| RHSM_KEY_VALUE: ${{ secrets.RHSM_ACTIVATION_KEY }} | ||
| RHSM_ORG_VALUE: ${{ secrets.RHSM_ORG_ID }} | ||
| REDHAT_REGISTRY: ${{ inputs.redhat-registry }} | ||
| RH_USER: ${{ secrets.REGISTRY_REDHAT_IO_USER }} | ||
| RH_PASSWORD: ${{ secrets.REGISTRY_REDHAT_IO_PASSWORD }} | ||
|
|
@@ -238,10 +241,10 @@ jobs: | |
| if [ "$RHSM" = true ]; then | ||
| # Files, not env=: the runner's podman predates env-sourced secrets. | ||
| # 0600 in RUNNER_TEMP, removed below; the gates job never sees them. | ||
| [ -n "$RHSM_ACTIVATION_KEY" ] || { echo "rhsm: true but no RHSM_ACTIVATION_KEY" >&2; exit 1; } | ||
| [ -n "$RHSM_KEY_VALUE" ] || { echo "rhsm: true but no RHSM_ACTIVATION_KEY" >&2; exit 1; } | ||
| umask 077 | ||
| printf '%s' "$RHSM_ACTIVATION_KEY" > "$RUNNER_TEMP/activation_key" | ||
| printf '%s' "$RHSM_ORG_ID" > "$RUNNER_TEMP/org_id" | ||
| printf '%s' "$RHSM_KEY_VALUE" > "$RUNNER_TEMP/activation_key" | ||
| printf '%s' "$RHSM_ORG_VALUE" > "$RUNNER_TEMP/org_id" | ||
| # Both spellings are in the fleet's Containerfiles: id=activation_key | ||
| # (rotv, nagios, rt) and id=RHSM_ACTIVATION_KEY (the ubi10 mariadb | ||
| # and postgres images). An unused secret costs nothing. | ||
|
|
@@ -314,7 +317,7 @@ jobs: | |
| - uses: actions/checkout@v7 | ||
| with: | ||
| repository: crunchtools/constitution | ||
| ref: ${{ inputs.constitution-ref || 'v1.39.3' }} | ||
| ref: ${{ inputs.constitution-ref || 'v1.39.4' }} | ||
| path: .constitution | ||
| persist-credentials: false | ||
| - if: needs.build.outputs.pushed == 'false' | ||
|
|
@@ -400,7 +403,7 @@ jobs: | |
| - uses: actions/checkout@v7 | ||
| with: | ||
| repository: crunchtools/constitution | ||
| ref: ${{ inputs.constitution-ref || 'v1.39.3' }} | ||
| ref: ${{ inputs.constitution-ref || 'v1.39.4' }} | ||
| path: .constitution | ||
| persist-credentials: false | ||
| - env: | ||
|
|
@@ -436,7 +439,7 @@ jobs: | |
| - uses: actions/checkout@v7 | ||
| with: | ||
| repository: crunchtools/constitution | ||
| ref: ${{ inputs.constitution-ref || 'v1.39.3' }} | ||
| ref: ${{ inputs.constitution-ref || 'v1.39.4' }} | ||
| path: .constitution | ||
| persist-credentials: false | ||
| - id: p | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |
| # permissions: | ||
| # contents: read | ||
| # issues: write | ||
| # uses: crunchtools/constitution/.github/workflows/[email protected].3 | ||
| # uses: crunchtools/constitution/.github/workflows/[email protected].4 | ||
| # | ||
| # from a workflow that runs on pull_request, on push to the default branch and on | ||
| # a weekly schedule. A pull request with a vulnerable dependency fails. On the | ||
|
|
@@ -43,7 +43,7 @@ jobs: | |
| - uses: actions/checkout@v7 | ||
| with: | ||
| repository: crunchtools/constitution | ||
| ref: v1.39.3 | ||
| ref: v1.39.4 | ||
| path: .constitution | ||
| persist-credentials: false | ||
| - name: Install uv | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| # | ||
| # Callers pin this file to a release tag: | ||
| # | ||
| # uses: crunchtools/constitution/.github/workflows/[email protected].3 | ||
| # uses: crunchtools/constitution/.github/workflows/[email protected].4 | ||
| # | ||
| # That tag IS the version the repo is judged by: the validator, profiles and | ||
| # requirements.toml are checked out at the release this file belongs to, | ||
|
|
@@ -37,7 +37,7 @@ jobs: | |
| - uses: actions/checkout@v7 | ||
| with: | ||
| repository: crunchtools/constitution | ||
| ref: v1.39.3 | ||
| ref: v1.39.4 | ||
| path: .constitution | ||
| persist-credentials: false | ||
| - uses: actions/setup-python@v7 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,4 +18,4 @@ permissions: | |
| jobs: | ||
| constitution: | ||
| name: Constitution | ||
| uses: crunchtools/constitution/.github/workflows/[email protected].3 | ||
| uses: crunchtools/constitution/.github/workflows/[email protected].4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ permissions: {} | |
|
|
||
| jobs: | ||
| container: | ||
| uses: crunchtools/constitution/.github/workflows/[email protected].3 | ||
| uses: crunchtools/constitution/.github/workflows/[email protected].4 | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,4 +24,4 @@ jobs: | |
| permissions: | ||
| contents: read | ||
| issues: write | ||
| uses: crunchtools/constitution/.github/workflows/[email protected].3 | ||
| uses: crunchtools/constitution/.github/workflows/[email protected].4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ def test_a_direct_dispatch_counts(): | |
|
|
||
| CALLER = ( | ||
| "jobs:\n container:\n" | ||
| " uses: crunchtools/constitution/.github/workflows/[email protected].3\n" | ||
| " uses: crunchtools/constitution/.github/workflows/[email protected].4\n" | ||
| " with:\n cascade: true\n downstream: child other-child\n" | ||
| ) | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
HIGH (Constitution): The self-validation workflow now checks out the candidate
v1.39.4validator. The constitution requires this repo's required check to pinvalidate.ymlto the last release so a PR is not judged by the validator it changes.Suggestion: Keep the checkout pinned to the previous release while this change is under review; update it to
v1.39.4after that release, as required by the self-validation process.Evidence:
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.
not a bug: this repo's required self-check is
.github/workflows/constitution.yml, which calls[email protected], a past release, so this PR is not judged by the validator it changes. Theref:literal inside validate.yml is the release that file belongs to: callers pinning[email protected]must check out the v1.39.4 validator, and tests hold that literal equal to the version. v1.39.2 and v1.39.3 shipped the same way.