Infinity-For-Lemmy/.github/workflows/codeql-analysis.yml
Sergei Kozelko addd6705ed
Update GitHub workflows (#995)
* Update CodeQL to v2

v1 is deprecated, see https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/

* Use gradle action for build

* Update checkout to v3

* Update setup-java to v3

* Update upload-artifact to v3

* Setup Dependabot to update GitHub actions
2022-09-09 13:40:51 +08:00

35 lines
596 B
YAML

name: CodeQL
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
schedule:
- cron: '0 12 * * *'
jobs:
Analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2