Skip to content

Commit

Permalink
ci: update ci permission and limit their environment
Browse files Browse the repository at this point in the history
1. check checksum
2. merge master to dev
  • Loading branch information
Keith-CY committed Mar 15, 2024
1 parent 7bb60a1 commit 4d3aa8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/check_checksums.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ jobs:
compare:
name: Compare checksums
runs-on: macos-latest
environment: Release
permissions:
contents: read
actions: read
contents: write # to append checksum for each commit
actions: read # to read artifacts
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Generate checksums from artifacts
run:
ruby ./scripts/release-checksums.rb ${{ github.event.release.tag_name }} | tee generated_checksums.txt
run: ruby ./scripts/release-checksums.rb ${{ github.event.release.tag_name }} | tee generated_checksums.txt

- name: Fetch checksums from release note
run: |
Expand All @@ -39,4 +39,3 @@ jobs:
- uses: peter-evans/commit-comment@v3
with:
body: ${{ steps.comment_body.outputs.body }}

3 changes: 3 additions & 0 deletions .github/workflows/merge_released_into_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
merge-to-dev:
name: Merge into develop
runs-on: ubuntu-latest
environment: Release
permissions:
pull-requests: write
steps:
- uses: actions/checkout@master
- name: Request
Expand Down

3 comments on commit 4d3aa8b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 8300103687

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 8300456647

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 8343480090

Please sign in to comment.