Skip to content

CSC + Github Actions secrets issue #152

Answered by maoo
thinkl33t asked this question in General
Discussion options

You must be logged in to vote

Hi @thinkl33t ! I've shared this already, but probably got lost somewhere in the Slack chat.

As you mention, this limitation is in reality a security "feature".

What I did in the past for other projects was to set a condition in the GitHub action build steps, based on the GitHub username (or org) where the PR os coming from. If it's not "finos", everything but the deployment can be executed, ie the first 2 build steps you mention. Here's some github action code that shows the syntax:

docusaurus.yml
        # Extract GitHub org/user and patch siteConfig.js only if not "finos"
        REPO="${{ github.repository }}"
        REPO_ORG=${REPO%"/"*}
        if [ "$REPO_ORG" != "finos" ]
       …

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@benjamb
Comment options

@benjamb
Comment options

Comment options

You must be logged in to vote
5 replies
@eddie-knight
Comment options

@maoo
Comment options

@benjamb
Comment options

@maoo
Comment options

@benjamb
Comment options

Answer selected by thinkl33t
Comment options

You must be logged in to vote
3 replies
@maoo
Comment options

@benjamb
Comment options

@thinkl33t
Comment options

thinkl33t Oct 21, 2021
Maintainer Author

Comment options

You must be logged in to vote
1 reply
@eddie-knight
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants