Skip to content

Restrict all GH workflows top-level token permissions #233

Restrict all GH workflows top-level token permissions

Restrict all GH workflows top-level token permissions #233

Workflow file for this run

name: test
on:
push:
branches: [master]
paths:
- '.github/workflows/test.yaml'
- 'src/**'
- 'test/**'
- 'vendor/**'
- 'carbon.h'
pull_request:
branches: [master]
types: [opened, synchronize]
paths:
- '.github/workflows/test.yaml'
- 'src/**'
- 'test/**'
- 'carbon.h'
schedule:
- cron: '0 9 * * 5'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions: read-all
jobs:
test:
permissions:
security-events: write
runs-on: ubuntu-latest
steps:
- name: checkout-repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: setup-codeql
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3
with:
languages: c-cpp
- name: test
run: |
clang src/make.c -o make
./make check
- name: analyze
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3