mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-26 01:12:43 -05:00
Try unauthenticated
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -354,18 +354,10 @@ jobs:
|
|||||||
if: steps.pr.outputs.shouldRun == 'true'
|
if: steps.pr.outputs.shouldRun == 'true'
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
env:
|
env:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
COMMIT_SHA: ${{ steps.pr.outputs.headSha }}
|
COMMIT_SHA: ${{ steps.pr.outputs.headSha }}
|
||||||
PR_NUMBER: ${{ steps.pr.outputs.prNumber }}
|
PR_NUMBER: ${{ steps.pr.outputs.prNumber }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const token = process.env.CODECOV_TOKEN;
|
|
||||||
if (!token) {
|
|
||||||
core.warning('CODECOV_TOKEN secret is not available; skipping comment.');
|
|
||||||
core.setOutput('shouldComment', 'false');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const commitSha = process.env.COMMIT_SHA;
|
const commitSha = process.env.COMMIT_SHA;
|
||||||
const prNumber = process.env.PR_NUMBER;
|
const prNumber = process.env.PR_NUMBER;
|
||||||
const owner = context.repo.owner;
|
const owner = context.repo.owner;
|
||||||
@@ -384,7 +376,6 @@ jobs:
|
|||||||
try {
|
try {
|
||||||
response = await fetch(commitUrl, {
|
response = await fetch(commitUrl, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${token}`,
|
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
Accept: 'application/json',
|
Accept: 'application/json',
|
||||||
},
|
},
|
||||||
@@ -434,7 +425,6 @@ jobs:
|
|||||||
try {
|
try {
|
||||||
prResponse = await fetch(prUrl, {
|
prResponse = await fetch(prUrl, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${token}`,
|
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
Accept: 'application/json',
|
Accept: 'application/json',
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user