Add branch configuration for pull_request trigger

Signed-off-by: temenuzhka-thede <temenuzhka.thede@docker.com>

Add check-latest option to set up go step

Signed-off-by: temenuzhka-thede <temenuzhka.thede@docker.com>
This commit is contained in:
temenuzhka-thede 2023-10-25 13:30:06 -05:00 committed by Nicolas De loof
parent c48e3c4a4f
commit d9e0e42d95
1 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,8 @@ on:
- '**/*.yaml'
- '**/*_test.go'
pull_request:
branches:
- 'main'
paths-ignore:
- '**/*.md'
- '**/*.txt'
@ -33,13 +35,14 @@ jobs:
steps:
-
name: Checkout repository
name: Checkout
uses: actions/checkout@v4
-
name: Update Go
name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
-
name: Initialize CodeQL
uses: github/codeql-action/init@v2