Skip to content

Commit 6bf6780

Browse files
committed
Remove debug logging from GitHub stats action to clean up output and enhance security by not exposing sensitive information.
1 parent 78e5ac2 commit 6bf6780

File tree

1 file changed

+0
-9
lines changed
  • apps/shared-backend/github-actions/github-stats-action

1 file changed

+0
-9
lines changed

apps/shared-backend/github-actions/github-stats-action/getStats.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ const BASE_URL = 'https://gov.meshjs.dev/'
1313
const NETLIFY_FUNCTION_URL = 'https://glittering-chebakia-09bd42.netlify.app/.netlify/functions/github-stats-background'
1414

1515
// Debug logging
16-
console.log('🔍 Environment variables:')
1716
console.log(` ORG: ${process.env.ORG}`)
1817
console.log(` REPO: ${process.env.REPO}`)
19-
console.log(` BASE_URL: ${BASE_URL}`)
20-
console.log(` NETLIFY_FUNCTION_URL: ${NETLIFY_FUNCTION_URL}`)
21-
console.log(` GITHUB_TOKEN: ${GITHUB_TOKEN ? '[REDACTED]' : '(not provided)'}`)
2218

2319
// Input validation function
2420
function validateInputs() {
@@ -70,11 +66,6 @@ const parsedGithubToken = GITHUB_TOKEN.trim()
7066
const parsedBaseUrl = BASE_URL.trim().replace(/\/$/, '')
7167
const parsedFunctionUrl = NETLIFY_FUNCTION_URL.trim()
7268

73-
console.log('📊 Resolved values:')
74-
console.log(` ORG: ${parsedOrg}`)
75-
console.log(` REPO: ${parsedRepo}`)
76-
console.log(` BASE_URL: ${parsedBaseUrl}`)
77-
7869
// Helper function to make HTTP requests
7970
async function makeRequest(url, options = {}) {
8071
try {

0 commit comments

Comments
 (0)