Skip to content

Commit

Permalink
ci: move app token step at first
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed Jul 1, 2024
1 parent 17dc2ce commit 77cff48
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,17 @@ jobs:
runs-on: ubuntu-latest
needs: codeql
steps:
- name: GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout Code
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -83,13 +92,6 @@ jobs:
run: |
pylint api tests > pylint-report.txt || true
- name: GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Generate Pylint Badge
if: github.ref == 'refs/heads/master'
env:
Expand Down

0 comments on commit 77cff48

Please sign in to comment.