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:
Sebastian Serth
2023-02-15 14:29:28 +01:00
parent a2f272ce3e
commit ddeb3760e7
2 changed files with 1 additions and 5 deletions

View File

@ -101,6 +101,7 @@ jobs:
dep-scan: dep-scan:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [ compile ] needs: [ compile ]
if: github.event_name != 'push' || github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' && github.actor != 'dependabot'
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3

View File

@ -13,7 +13,6 @@ jobs:
analyze: analyze:
name: Analyze name: Analyze
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name != 'push' || github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' && github.actor != 'dependabot'
permissions: permissions:
actions: read actions: read
contents: read contents: read
@ -27,10 +26,6 @@ jobs:
# Learn more about CodeQL language support at https://git.io/codeql-language-support # Learn more about CodeQL language support at https://git.io/codeql-language-support
steps: 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 - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3