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

workflows: Fix valid days check #1417

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

jku
Copy link
Member

@jku jku commented Jan 20, 2025

This is actually never true:
github.event_name == 'workflow_call'
as the event name in workflow_called workflows is the calling workflows event name.

Use the workflow name to distinguish the cases:

  • schedule: name is the test workflow name, use future validity checks
  • workflow_dispatch: name is the test workflow name, use future validity checks
  • workflow_call from publish.yml: name is calling workflown name, do not use future validity checks

Using workflow name for this is a bit of a hack and we should consider adding an input variable for this: that is a bigger change and should be tested well though.

See #1416.

This is actually never true:
    github.event_name == 'workflow_call'
as the event name in workflow_called workflows is the calling workflows event name.

Use the workflow name to distinguish the cases:
 * schedule: name is the test workflow name, use future validity checks
 * workflow_dispatch: name is the test workflow name, use future validity checks
 * workflow_call from publish.yml: name is calling workflown name, do not use
   future validity checks

Using workflow name for this is a bit of a hack and we should consider
adding an input variable for this: that is a bigger change and should be
tested well though.

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku
Copy link
Member Author

jku commented Jan 20, 2025

Note that the validity periods in the themselves are a bit weird: #1415

I'm on purpose not changing them here as the ongoing signing event will improve things

@jku jku requested a review from kommendorkapten January 20, 2025 09:38
@jku jku merged commit 9fc08c5 into sigstore:main Jan 20, 2025
3 checks passed
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