Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/composite/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,21 @@ inputs:
description: "GitHub token used to send message"
required: false
default: ${{ github.token }}
SECRETS:
description: "Pass toJson(secrets) from the calling workflow to expose all secrets as env vars."
required: false
default: ""

runs:
using: "composite"
steps:
- name: Setup
uses: tahminator/pipeline/actions/setup@1.0.18
uses: tahminator/pipeline/actions/setup@ad3a6c70c6ddd81909e6b22e2b622e0b8c1208c4
with:
GPG_PASSPHRASE: ${{ inputs.GPG_PASSPHRASE }}
GPG_PRIVATE_KEY: ${{ inputs.GPG_PRIVATE_KEY }}
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
SECRETS: ${{ inputs.SECRETS }}

- name: Run tests
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions .github/scripts/src/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ async function main() {
const envClient = EnvClient.create(EnvClientStrategy.GIT_CRYPT);
const { sonarToken } = parseCiEnv(await envClient.readFromEnv(".env.ci"));

console.log(`len(TEST) is ${process.env.TEST?.length}`);

const sonarClient = new SonarScannerClient({
auth: {
token: sonarToken,
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
SECRETS: ${{ toJSON(secrets) }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
Expand Down
Loading