Skip to content

Commit

Permalink
Add scheduled CodeQL job with golang deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
masutaka committed Sep 14, 2024
1 parent 9073f69 commit bb2127c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Schedule

on:
schedule:
- cron: "00 10 * * 5" # every friday 19:00 JST

jobs:
codeql:
permissions:
actions: read
checks: read
contents: read
security-events: write
uses: route06/actions/.github/workflows/codeql_core.yml@b4926a2cc01811c7908ded0a7d93f4b5527079d4 # v2.4.0
with:
language: "go"
pushover:
name: pushover if failure
if: github.ref_name == github.event.repository.default_branch && failure()
needs: codeql
uses: ./.github/workflows/pushover.yml
secrets:
PUSHOVER_API_KEY: ${{ secrets.PUSHOVER_API_KEY }}
PUSHOVER_USER_KEY: ${{ secrets.PUSHOVER_USER_KEY }}
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- main
pull_request:
schedule:
- cron: "00 10 * * 5" # Mainly for CodeQL, every fri 19:00 JST

jobs:
actionlint:
Expand Down

0 comments on commit bb2127c

Please sign in to comment.