Skip to content

Commit

Permalink
ci: use correct GitHub Actions permission "contents" instead of "cont…
Browse files Browse the repository at this point in the history
…ent" (#200)

### Rationale for this change

The syntax for permissions should use `contents` instead of `content`,
see:
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idpermissions

### What changes are included in this PR?

Update to correct GitHub actions syntax.

### Are these changes tested?

No, but can be seen the usage on the Arrow repo:
https://github.com/apache/arrow/blob/bbda6b1e1322c5a9b8c107a03343d18b759694c1/.github/workflows/comment_bot.yml#L28

### Are there any user-facing changes?

No
  • Loading branch information
raulcd authored Nov 26, 2024
1 parent e112ad0 commit dc8b257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/comment_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
issue_assign:
name: "Assign issue"
permissions:
content: read
contents: read
issues: write
if: github.event.comment.body == 'take'
runs-on: ubuntu-latest
Expand Down

0 comments on commit dc8b257

Please sign in to comment.