Skip to content

Commit

Permalink
Fix CodeQL push on branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 authored and adamjensenbot committed Nov 23, 2023
1 parent 984922a commit 7a59b1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
configure:
name: Preliminary configuration
runs-on: ubuntu-latest
if: ${{ !cancelled() && github.event_name == 'repository_dispatch' }}
outputs:
commit-ref: ${{ steps.configure.outputs.commit-ref }}
repo-suffix: ${{ steps.configure.outputs.repo-suffix }}
Expand All @@ -36,8 +35,17 @@ jobs:
id: configure
run: |
# The ref of the commit to checkout (do not use the merge commit if pull request)
echo "commit-ref=${{ github.event.client_payload.pull_request.head.sha }}" >> $GITHUB_OUTPUT
echo "repo-name=${{ github.event.client_payload.github.payload.repository.full_name }}" >> $GITHUB_OUTPUT
if [ "${{ github.event_name }}" == "repository_dispatch" ]; then
echo "commit-ref=${{ github.event.client_payload.pull_request.head.sha }}" >> $GITHUB_OUTPUT
else
echo "commit-ref=${{ github.sha }}" >> $GITHUB_OUTPUT
fi
if [ "${{ github.event_name }}" == "repository_dispatch" ]; then
echo "repo-name=${{ github.event.client_payload.github.payload.repository.full_name }}" >> $GITHUB_OUTPUT
else
echo "repo-name=${{ github.repository }}" >> $GITHUB_OUTPUT
fi
# Since we are using a repository-dispatch event, we have to explicitly set a run check. We initialize it to a "pending" state.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- markdownlint-disable first-line-h1 -->
<p align="center">
<a href="https://github.com/liqotech/liqo/actions/workflows/integration.yml"><img src="https://github.com/liqotech/liqo/actions/workflows/integration.yml/badge.svg" alt="Integration Pipeline Status"></a>
<a href="https://github.com/liqotech/liqo/actions/workflows/codeql.yml"><img src="https://github.com/liqotech/liqo/actions/workflows/codeql.yml/badge.svg" alt="Integration Pipeline Status"></a>
<a href="https://github.com/liqotech/liqo/actions/workflows/github-code-scanning/codeql"><img src="https://github.com/liqotech/liqo/actions/workflows/github-code-scanning/codeql/badge.svg" alt="CodeQL Status"></a>
<a href="https://goreportcard.com/report/github.com/liqotech/liqo"><img src=https://goreportcard.com/badge/github.com/liqotech/liqo></a>
<a href="https://coveralls.io/github/liqotech/liqo" alt="Liqo Test Coverage"><img src=https://coveralls.io/repos/github/liqotech/liqo/badge.svg?branch=master></a>
Expand Down

0 comments on commit 7a59b1c

Please sign in to comment.