mirror of
https://github.com/bitnami/containers.git
synced 2026-02-10 11:47:39 +08:00
[bitnami/containers] Fix permissions in license-headers workflow (#39864)
[bitnami/chaontainersFix permissions in license-headers workflow Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
21
.github/workflows/license-headers.yml
vendored
21
.github/workflows/license-headers.yml
vendored
@@ -3,14 +3,27 @@
|
||||
|
||||
---
|
||||
name: '[License] Check license headers'
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
branches:
|
||||
- main
|
||||
- bitnami:main
|
||||
# Remove all permissions by default
|
||||
permissions: {}
|
||||
jobs:
|
||||
license-headers-linter:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
name: Checkout Repository
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
- name: Check license Headers
|
||||
uses: apache/skywalking-eyes/header@v0.4.0
|
||||
uses: apache/skywalking-eyes/header@v0.4.0
|
||||
Reference in New Issue
Block a user