Organization Secrets Should Be Updated At Least Yearly

policy name: organization_secret_is_stale

severity: MEDIUM

Description

Some of the organizations secrets have not been updated for over a year. It is recommended to refresh secret values regularly in order to minimize the risk of breach in case of an information leak.

Threat Example(s)

Sensitive data may have been inadvertently made public in the past, and an attacker who holds this data may gain access to your current CI and services. In addition, there may be old or unnecessary tokens that have not been inspected and can be used to access sensitive information.

Remediation

  1. Enter your organization’s landing page
  2. Go to the settings tab
  3. Under the ‘Security’ title on the left, choose ‘Secrets and variables’
  4. Click ‘Actions’
  5. Sort secrets by ‘Last Updated’
  6. Regenerate every secret older than one year and add the new value to GitHub’s secret manager