Merge pull request #43 from 0x524a/fix/ci-workflow-permissions
ci: add explicit permissions for workflow jobs
This commit is contained in:
@@ -6,15 +6,29 @@ on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
pull-requests: write
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
# Status check - always runs
|
||||
status-check:
|
||||
name: Workflow Status
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Workflow started
|
||||
run: echo "✅ CI workflow is running"
|
||||
|
||||
# Quick validation - fail fast on obvious issues
|
||||
validate:
|
||||
name: Quick Validation
|
||||
runs-on: ubuntu-latest
|
||||
needs: status-check
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
name: Simple Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
simple:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Echo test
|
||||
run: echo "Hello from GitHub Actions"
|
||||
Reference in New Issue
Block a user