Skip to content

Commit

Permalink
Add permissions to github_token
Browse files Browse the repository at this point in the history
  • Loading branch information
lreciomelero committed Oct 21, 2024
1 parent aa1b170 commit 18a1fed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [created]

permissions:
contents: write # Permitir escritura en el contenido del repositorio

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -41,6 +44,8 @@ jobs:
asset_path: ./out/infrastructure-components.yaml
asset_name: infrastructure-components.yaml
asset_content_type: application/x-yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Usar el token generado automáticamente

# 6. Upload metadata.yaml as a release asset
- name: Upload metadata.yaml
Expand All @@ -50,3 +55,5 @@ jobs:
asset_path: ./out/metadata.yaml
asset_name: metadata.yaml
asset_content_type: application/x-yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 18a1fed

Please sign in to comment.