Skip to content

Commit

Permalink
ci: adjust workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamim Attafi committed Jun 3, 2024
1 parent e6928d8 commit 62e7f4f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
name: Test

on: [pull_request, workflow_dispatch]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
logLevel:
description: 'Log Level'
required: false
default: 'warning'
type: choice
options:
- info
- warning
- debug

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: read
checks: write
id-token: write

jobs:
test-library:
name: Run Library Tests
Expand Down

0 comments on commit 62e7f4f

Please sign in to comment.