TMA-GITHUB-2.1.7
Ensure build secrets are limited to the minimal necessary scope
설명
Build tools providers offer a secure way to store secrets that should be used during the build process. These secrets will often be credentials used to access other tools, for example for pulling code or for uploading artifacts. Allowing over permissive access to these secrets may affect on their exposure. For example if a secret is defined in an organization level, and users can create new repositories, there is a scenario where a user can ... Reported as a manual review item: no reliable read-only gh api check exists for this control.
점검 방법
감사 방식: 수동 검토
이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.
For each build tool in use, review the secrets defined and the permission scopes they are assigned. Expected state: For each build tool, review the secrets defined and their permissions scope and change over permissive scopes to more restrictive ones based on the required access.
조치 방법
조치 방식: 가이드 또는 인프라 패치
For each build tool, review the secrets defined and their permissions scope and change over permissive scopes to more restrictive ones based on the required access.
속성
- 운영 체제
- 모두
- 태그
- githubbuild-pipelines
- 참고 자료
- CIS GitHub Benchmark v1.2.0 - 2.1.7 Ensure build secrets are limited to the minimal necessary scope