mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-13 06:27:26 +00:00
chore(ci): restrict scorecards to codecov/codecov-action
This commit is contained in:
parent
9e145151be
commit
73b4fbd435
3 changed files with 8 additions and 7 deletions
1
.github/workflows/scorecards-analysis.yml
vendored
1
.github/workflows/scorecards-analysis.yml
vendored
|
|
@ -12,6 +12,7 @@ permissions: read-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analysis:
|
analysis:
|
||||||
|
if: github.repository == 'codecov/codecov-action'
|
||||||
name: Scorecards analysis
|
name: Scorecards analysis
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
||||||
4
dist/index.js
vendored
Executable file → Normal file
4
dist/index.js
vendored
Executable file → Normal file
|
|
@ -32351,12 +32351,12 @@ const isPullRequestFromFork = () => {
|
||||||
return (baseLabel.split(':')[0] !== headLabel.split(':')[0]);
|
return (baseLabel.split(':')[0] !== headLabel.split(':')[0]);
|
||||||
};
|
};
|
||||||
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
|
const getToken = () => buildExec_awaiter(void 0, void 0, void 0, function* () {
|
||||||
if (isPullRequestFromFork()) {
|
let token = core.getInput('token');
|
||||||
|
if (!token && isPullRequestFromFork()) {
|
||||||
core.info('==> Fork detected, tokenless uploading used');
|
core.info('==> Fork detected, tokenless uploading used');
|
||||||
process.env['TOKENLESS'] = context.payload.pull_request.head.label;
|
process.env['TOKENLESS'] = context.payload.pull_request.head.label;
|
||||||
return Promise.resolve('');
|
return Promise.resolve('');
|
||||||
}
|
}
|
||||||
let token = core.getInput('token');
|
|
||||||
let url = core.getInput('url');
|
let url = core.getInput('url');
|
||||||
const useOIDC = isTrue(core.getInput('use_oidc'));
|
const useOIDC = isTrue(core.getInput('use_oidc'));
|
||||||
if (useOIDC) {
|
if (useOIDC) {
|
||||||
|
|
|
||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue