Skip to content

Commit

Permalink
fix(ci): 25 add workflow permission (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-winberry authored Feb 11, 2025
1 parent ec993fd commit 00a289a
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
contents: read # Required for actions/checkout
id-token: write # Required for uploading artifacts
actions: read # Required for using actions
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 'CodeQL'

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['javascript', 'typescript', 'go']
# Add 'go' to the list of languages

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

# If the Autobuild fails, you may need to manually build your Go code
# Uncomment and modify the following lines if necessary
#- run: |
# go build ./...

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3

0 comments on commit 00a289a

Please sign in to comment.