Skip to content
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

release: fix federated auth #669

Merged
merged 1 commit into from
Jul 4, 2024
Merged

release: fix federated auth #669

merged 1 commit into from
Jul 4, 2024

Conversation

dscho
Copy link
Member

@dscho dscho commented Jul 2, 2024

One "funny" quirk of GitHub Actions is that some of their YAML constructs that users assume to be cumulative, are not. One example is the permissions block: Most readers will assume that the following YAML will combine contents and id-token permissions:

permissions:
  id-token: write

jobs:
  my-job:
    permissions:
      contents: write

However, that is not the case! The inner permissions block completely negates the outer permissions block. This can be seen in all its glory here. With this commit, the bug is fixed.

One "funny" quirk of GitHub Actions is that some of their YAML
constructs that users _assume_ to be cumulative, are not. One example is
the `permissions` block: Most readers will assume that the following
YAML will combine `contents` and `id-token` permissions:

	permissions:
	  id-token: write

	jobs:
	  my-job:
	    permissions:
	      contents: write

However, that is not the case! The inner `permissions` block completely
negates the outer `permissions` block.

So let's just repeat ourselves to force GitHub Actions to understand
which permissions we need.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho requested a review from mjcheetham July 2, 2024 11:32
@dscho dscho self-assigned this Jul 2, 2024
@dscho dscho merged commit 3dfd9ac into vfs-2.45.2 Jul 4, 2024
114 checks passed
@dscho dscho deleted the fix-azure-login branch July 4, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants