Skip to content

Create a separate repo where you allow actions to run, so you can get the secret out #425

Open

Description

@commjoen

Create a separate repo where you allow actions to run, so you can get the secret out. The idea would be that you have a challenge with a forkable action+Secret, so anyone forking this repository should get access to the given secret.
TODO:

  • Have the Github secret forkable
  • Create a github action using it
  • Create the actual challenge with the secret encrypted as part of the java code (See contributing.md on how to create the challenge)

Activity

  1. added
    help wanted
    on Sep 22, 2022
  2. changed the title [-]Create a separate repo where you allow actions to run, so you can get the ssecret out[/-] [+]Create a separate repo where you allow actions to run, so you can get the secret out[/+] on Oct 5, 2022
  3. commjoen commented on Oct 13, 2022

    @commjoen
    CollaboratorAuthor

    Depends on #453 in order to make all items relatable and easy to find :) .

  4. added
    New Challenge
    on Feb 13, 2023
  5. commjoen commented on Oct 15, 2023

    @commjoen
    CollaboratorAuthor

    Given a secret can no longer be used in forks unless you use pull_request_target which will result in a lot of spam PRs, maybe we can instead just have an encrypted secret in a github action with the key embedded into it?

  6. removed
    help wanted
    on Oct 15, 2023
  7. commjoen commented on Oct 15, 2023

    @commjoen
    CollaboratorAuthor

    Removing additional labels until we are sure what to do with it :D (@bendehaan )

  8. prx-my commented on Nov 20, 2026

    @prx-my

    hey, i wanna work on this one @commjoen

  9. prx-my commented on Nov 22, 2026

    @prx-my

    opening a draft soon

  10. prx-my commented on Nov 22, 2026

    @prx-my

    Hi @commjoen, I've opened a draft PR: #2810

    I went with your suggestion from earlier in this thread rather than a separate repo:
    the workflow .github/workflows/challenge77.yml ships the secret AES-encrypted, with
    the key and IV embedded right next to it. Anyone who forks the repo can run the workflow
    (or just openssl) and get the secret out, no repository secrets or pull_request_target needed.

    It's added as Challenge 77 (76 is taken by #2736), with docs in all supported languages and tests.

    One question: are you fine with the workflow living in this repo, or would you still prefer
    a separate repo for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

New Challenge

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions