Skip to content

EMU username schema is rejected by regex validation #10

Closed
@adrianokaiser

Description

@adrianokaiser

Describe the Issue

I am currently using GitHub Cloud with an EMU setup. If i provide my username in the allowlist, the action tries to validate the username and rejects it. To my understanding the action is validating the username string with a Regex. That Regex was created in a different Repo which was created 7 years ago and so the regex is not covering the EMU username naming schema.

if (githubUsernameRegex.test(operator)) {

https://github.com/shinnn/github-username-regex/blob/master/index.js

In my EMU Organization the naming schema is:
localPartOfEmail_GitHubOrganizationName

Example:
Org name: DeepThought
E-Mail: arthur@deepthought.test

So the username will be:
arthur_deepthought

I cant tell if the username in EMU is something consistent.

Action Configuration

- name: command
  id: command
  uses: github/command@v0.0.3
  with:
    command: .zap
    allowlist: arthur_deepthought

Relevant Actions Log Output

No response

Extra Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions