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
2 changes: 1 addition & 1 deletion src/services/secretscanning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function getSecretScanningAlertsForScope(
return res
} catch (error: unknown) {
if (error instanceof Error) {
core.debug(`Error with fatching alerts from the API.: ${error}`)
core.debug(`Error with fetching alerts from the API.: ${error}`)
core.setFailed(
'Error: There was an error fetching the alerts from the API. Please check the logs.'
)
Expand Down
6 changes: 4 additions & 2 deletions src/services/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import {SummaryTableRow} from '@actions/core/lib/summary'
import {SecretScanningAlert} from '../types/common/main'

export function addToSummary(title: string, alerts: SecretScanningAlert[]) {
const headers = ['Alert Number', 'Secret State', 'Secret Type', 'HTML URL']
const headers = ['Alert Number', 'Secret State', 'Secret Type', 'HTML URL', 'Repo Owner', 'Repo Name', 'Org Name', 'Org Owner']
// Define the table rows
const rows = alerts.map(alert => [
alert.number.toString(),
alert.state,
alert.secret_type,
alert.html_url
alert.html_url,
alert.login,
alert.name
])

// Add the table to the Action summary
Expand Down
2 changes: 2 additions & 0 deletions src/types/common/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type SecretScanningAlert = {
html_url: string
state: string
secret_type: string
login: string
name: string
}

type RateLimitOptions = {
Expand Down