Skip to content

Commit

Permalink
chore(ci): merge codeql job in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed May 29, 2022
1 parent 11cc58b commit 524c154
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 26 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -77,6 +77,20 @@ jobs:
- name: Build final image
run: docker build -t final-image .

codeql:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v3
- uses: github/codeql-action/init@v2
with:
languages: go
- uses: github/codeql-action/autobuild@v2
- uses: github/codeql-action/analyze@v2

publish:
if: |
github.event.pull_request.head.repo.full_name == github.repository &&
Expand All @@ -86,7 +100,7 @@ jobs:
github.event_name == 'release' ||
github.event_name == 'pull_request'
)
needs: [verify]
needs: [verify, codeql]
permissions:
actions: read
contents: read
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/codeql.yml

This file was deleted.

0 comments on commit 524c154

Please sign in to comment.