diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 994a83aa0..aff8197d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,9 @@ on: release: types: [created] +permissions: + contents: write # Permitir escritura en el contenido del repositorio + jobs: build: runs-on: ubuntu-latest @@ -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 @@ -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 }} \ No newline at end of file