From 62e7f4ffe9decd56ed0b26e16f1c5159661135f1 Mon Sep 17 00:00:00 2001 From: Tamim Attafi Date: Tue, 4 Jun 2024 00:22:36 +0700 Subject: [PATCH] ci: adjust workflow permissions --- .github/workflows/test.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 94fc8cc..7fa195b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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