비트(bit)주세요

[gotify/server] gosec의 GitHub Action 사용해보기 본문

SUA/오픈소스 보안

[gotify/server] gosec의 GitHub Action 사용해보기

yglee730 2021. 11. 1. 17:54
728x90

yml 예시 파일을 복사해본다.

https://github.com/Ynniss/golang-security-action

 

GitHub - Ynniss/golang-security-action: Github action that let you run gosec (https://github.com/securego/gosec)

Github action that let you run gosec (https://github.com/securego/gosec) - GitHub - Ynniss/golang-security-action: Github action that let you run gosec (https://github.com/securego/gosec)

github.com

 

1. Fork한 레포지토리에 들어간다.

 

2. [.github/workflows/] 디렉토리에 [gosecAction.yml]이라는 파일을 생성하고,

코드는 방금 복사한 코드를 붙여넣는다.

 

3. 그리고 커밋해준다.

 

4. 파일이 잘 올라왔고, 현재 실행중이다.

 

5. [Action] 탭에 들어가서 자세한 상태를 볼 수 있다.

 

6. 점검이 다 된 모습이다.