Auto-locking dependencies #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "AutoLock AI" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
schedule: | |
- cron: '0 2 * * 1' # This runs the CodeQL scan every Monday at 2 AM UTC | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
matrix: | |
language: [ 'python','javascript' ] # Specify the languages here | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
send_request: | |
name: AutoLock Callback | |
runs-on: ubuntu-latest | |
needs: analyze | |
steps: | |
- name: Send POST request to http://localhost:8080/install/callback | |
run: | | |
curl -X POST "http://localhost:8080/install/callback" \ | |
-H "Content-Type: application/json" \ | |
-d '{"owner": "tbwrigh", "repo": "hackcu9"}' | |