Skip to content

Commit

Permalink
Update CodeQL GitHub Actions
Browse files Browse the repository at this point in the history
Set top-level permissions. Remove unneeded comments.
  • Loading branch information
jspeed-meyers authored Nov 10, 2024
1 parent ab2ad35 commit 0c7089b
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
pull_request:
branches: [ "main" ]

permissions:
actions: read
contents: read

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

strategy:
Expand All @@ -22,27 +24,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@094bbe8be86284d004fe1cd9dffcbea6fc3c6c2d # v2
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@094bbe8be86284d004fe1cd9dffcbea6fc3c6c2d # v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@094bbe8be86284d004fe1cd9dffcbea6fc3c6c2d # v2
with:
Expand Down

0 comments on commit 0c7089b

Please sign in to comment.