Skip to content

Commit

Permalink
ci: Update release workflow tokens and permissions (#88)
Browse files Browse the repository at this point in the history
Also:
 - Upgrades release-please
- Replaces a third-party action with the official GitHub command line,
to avoid exposing priveleged tokens to a third-party
  • Loading branch information
joeyparrish authored Dec 20, 2024
1 parent de69786 commit 2d26092
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,16 @@ name: release-please
jobs:
release-please:
runs-on: ubuntu-latest

permissions:
# Write to "contents" is needed to create a release
contents: write
# Write to pull-requests is needed to create and update the release PR
pull-requests: write

steps:
# Create/update release PR
- uses: google-github-actions/release-please-action@v3
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
Expand Down Expand Up @@ -40,11 +47,9 @@ jobs:
- run: npm pack
if: ${{ steps.release.outputs.release_created }}

- uses: svenstaro/upload-release-action@483c1e56f95e88835747b1c7c60581215016cbf2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag_name }}
file: eme-encryption-scheme-polyfill-*.tgz
file_glob: true
overwrite: true
- name: Attach files to release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload --clobber "${{ steps.release.outputs.tag_name }}" eme-encryption-scheme-polyfill-*.tgz
if: ${{ steps.release.outputs.release_created }}

0 comments on commit 2d26092

Please sign in to comment.