Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5aa853b22 |
@@ -5,7 +5,6 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- renovate/**
|
||||
- 1692/setup-renovate-debug
|
||||
|
||||
pull_request:
|
||||
types:
|
||||
@@ -17,9 +16,9 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version:
|
||||
# - 10
|
||||
- 10
|
||||
- 12
|
||||
# - 14
|
||||
- 14
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -32,7 +31,7 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- uses: bahmutov/npm-install@v1
|
||||
- run: npx ava test/integration.test.js
|
||||
- run: npm run test:ci
|
||||
|
||||
# separate job to set as required in branch protection,
|
||||
# as the build names above change each time Node versions change
|
||||
|
||||
@@ -21,13 +21,6 @@ See https://github.com/semantic-release/semantic-release/blob/master/docs/suppor
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log("DEBUG START ==========")
|
||||
console.log('process.env')
|
||||
console.log(process.env)
|
||||
console.log('envCi({ env: process.env })')
|
||||
console.log(require('env-ci')({ env: process.env }))
|
||||
console.log("DEBUG END ==========")
|
||||
|
||||
execa('git', ['--version'])
|
||||
.then(({stdout}) => {
|
||||
var gitVersion = findVersions(stdout)[0];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const path = require('path');
|
||||
const { serial: test } = require('ava');
|
||||
const test = require('ava');
|
||||
const proxyquire = require('proxyquire');
|
||||
const {escapeRegExp} = require('lodash');
|
||||
const {writeJson, readJson} = require('fs-extra');
|
||||
@@ -29,11 +29,7 @@ const npmRegistry = require('./helpers/npm-registry');
|
||||
const requireNoCache = proxyquire.noPreserveCache();
|
||||
|
||||
// Environment variables used with semantic-release cli (similar to what a user would setup)
|
||||
const {
|
||||
GITHUB_ACTION,
|
||||
GITHUB_TOKEN,
|
||||
...processEnvWithoutGitHubActionsVariables
|
||||
} = process.env
|
||||
const {GITHUB_ACTION, GITHUB_TOKEN, ...processEnvWithoutGitHubActionsVariables} = process.env;
|
||||
const env = {
|
||||
...processEnvWithoutGitHubActionsVariables,
|
||||
...npmRegistry.authEnv,
|
||||
@@ -656,7 +652,12 @@ test('Hide sensitive environment variable values from the logs', async (t) => {
|
||||
});
|
||||
|
||||
t.log('$ semantic-release');
|
||||
const {stdout, stderr} = await execa(cli, [], {env: {...env, MY_TOKEN: 'secret token'}, cwd, reject: false, extendEnv: false});
|
||||
const {stdout, stderr} = await execa(cli, [], {
|
||||
env: {...env, MY_TOKEN: 'secret token'},
|
||||
cwd,
|
||||
reject: false,
|
||||
extendEnv: false,
|
||||
});
|
||||
|
||||
t.regex(stdout, new RegExp(`Console: Exposing token ${escapeRegExp(SECRET_REPLACEMENT)}`));
|
||||
t.regex(stdout, new RegExp(`Log: Exposing token ${escapeRegExp(SECRET_REPLACEMENT)}`));
|
||||
|
||||
Reference in New Issue
Block a user