Move GitHub action filter to actual Trivy job
Formally, I was editing the wrong job that did not had any issues. Let's try again :)
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -101,6 +101,7 @@ jobs:
|
||||
dep-scan:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ compile ]
|
||||
if: github.event_name != 'push' || github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' && github.actor != 'dependabot'
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
5
.github/workflows/codeql-analysis.yml
vendored
5
.github/workflows/codeql-analysis.yml
vendored
@ -13,7 +13,6 @@ jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name != 'push' || github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' && github.actor != 'dependabot'
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
@ -27,10 +26,6 @@ jobs:
|
||||
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
||||
|
||||
steps:
|
||||
# Temporarily debug runs on the main branch triggered by Dependabot after an automatic merge
|
||||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
||||
- run: echo "🎉 The job was automatically triggered by ${{ github.actor }}."
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
Reference in New Issue
Block a user