Skip to content

Commit

Permalink
♻️ Move checkout step to workflow to be able to call custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
devtobi committed Sep 19, 2024
1 parent 0c60d88 commit 5a6a8e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/actions/action-codeql/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ inputs:
runs:
using: "composite"
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Initialize CodeQL for ${{ inputs.language }}
uses: github/codeql-action/init@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
needs: check-changes
if: github.ref_name == 'main' || needs.check-changes.outputs.java == 'true'
steps:
- name: Checkout repository
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: ./.github/actions/action-codeql
with:
codeql-language: java-kotlin
Expand All @@ -55,6 +57,8 @@ jobs:
needs: check-changes
if: github.ref_name == 'main' || needs.check-changes.outputs.javascript-typescript-vue == 'true'
steps:
- name: Checkout repository
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: ./.github/actions/action-codeql
with:
codeql-language: javascript-typescript
Expand All @@ -64,6 +68,8 @@ jobs:
needs: check-changes
if: github.ref_name == 'main' || needs.check-changes.outputs.python == 'true'
steps:
- name: Checkout repository
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: ./.github/actions/action-codeql
with:
codeql-language: python

0 comments on commit 5a6a8e2

Please sign in to comment.