Skip to content

Commit

Permalink
avoid displaying secrets in github actions, even if they are not real…
Browse files Browse the repository at this point in the history
…ly secret
  • Loading branch information
francoismichel committed Dec 12, 2023
1 parent aa0283f commit 6482022
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,23 @@ jobs:
- name: Put test public key in testuser's authorized_identities
env:
TESTUSER_PUBKEY_BASE64: ${{ secrets.TESTUSER_PUBKEY_BASE64 }}
run: echo $TESTUSER_PUBKEY_BASE64 | base64 --decode | sudo tee ${{matrix.testuserhome}}/.ssh/authorized_identities
run: echo $TESTUSER_PUBKEY_BASE64 | base64 --decode | sudo cp /dev/stdin ${{matrix.testuserhome}}/.ssh/authorized_identities
- name: Generate test private key
env:
TESTUSER_PRIVKEY_BASE64: ${{ secrets.TESTUSER_PRIVKEY_BASE64 }}
run: echo $TESTUSER_PRIVKEY_BASE64 | base64 --decode | sudo tee /privkey
run: echo $TESTUSER_PRIVKEY_BASE64 | base64 --decode | sudo cp /dev/stdin /privkey
- name: Generate attacker's private key
env:
ATTACKER_PRIVKEY_BASE64: ${{ secrets.ATTACKER_PRIVKEY_BASE64 }}
run: echo $ATTACKER_PRIVKEY_BASE64 | base64 --decode | sudo tee /attacker-privkey
run: echo $ATTACKER_PRIVKEY_BASE64 | base64 --decode | sudo cp /dev/stdin /attacker-privkey
- name: Generate server's cert private key
env:
TESTSERVER_CERT_PRIVKEY_BASE64: ${{ secrets.TESTSERVER_CERT_PRIVKEY_BASE64 }}
run: echo $TESTSERVER_CERT_PRIVKEY_BASE64 | base64 --decode | sudo tee /cert_priv.key
run: echo $TESTSERVER_CERT_PRIVKEY_BASE64 | base64 --decode | sudo cp /dev/stdin /cert_priv.key
- name: Generate server's cert
env:
TESTSERVER_CERT_BASE64: ${{ secrets.TESTSERVER_CERT_BASE64 }}
run: echo $TESTSERVER_CERT_BASE64 | base64 --decode | sudo tee /cert.pem
run: echo $TESTSERVER_CERT_BASE64 | base64 --decode | sudo cp /dev/stdin /cert.pem
- name: Classical unit tests
run: env CC=${{matrix.archparams.cc}} CGO_ENABLED=1 GOOS=${{matrix.goos}} GOARCH=${{matrix.archparams.goarch}} go run github.com/onsi/ginkgo/v2/ginkgo -r
- name: Integration tests
Expand Down

0 comments on commit 6482022

Please sign in to comment.