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

Matrix #96

Merged
merged 21 commits into from
Nov 6, 2024
Merged

Matrix #96

merged 21 commits into from
Nov 6, 2024

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented Nov 6, 2024

Description
Checklist
  • Tested changes against a test repository
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • (If this PR is for a release) Updated README to point to the new tag (leave unchecked if not applicable)

@grahamc
Copy link
Member Author

grahamc commented Nov 6, 2024

Includes #97 and #95

Comment on lines +227 to +230
"--use-gha-cache",
useGhaCache,
"--use-flakehub",
useFlakeHub,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised to see these as new additions?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, it's literally the next section, never mind, I see how they moved.

uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
_internal-obliterate-actions-id-token-request-variables: ${{ matrix.id-token == 'none' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this for? _internal-obliterate... ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want those actions to not have the ACTIONS_ID_TOKEN_REQUEST_* environment variables, so they can't create an ID token and log in to flakehub. This simulates not having the id-token: write permission. I wanted to parameterize that permission in the matrix, but permissions can't be variable.

Copy link
Member

@colemickens colemickens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, very slick, definitely increases my confidence about things.

@grahamc grahamc added this pull request to the merge queue Nov 6, 2024
Merged via the queue into main with commit 9ab3ce7 Nov 6, 2024
5 checks passed
@grahamc grahamc deleted the matrix branch November 6, 2024 21:21
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.

2 participants