Skip to content

Commit

Permalink
Update permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
reuteras committed Apr 29, 2024
1 parent 93127e5 commit ffc6d04
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/dev-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ permissions: read-all
jobs:
update_readme:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -44,8 +46,6 @@ jobs:
# yamllint disable rule:line-length
- name: Commit updated bandit.json
id: commit_bandit
permissions:
contents: write
run: |
git add resources/bandit.json
git config --local user.email "github-actions[bot]@users.noreply.github.com"
Expand All @@ -65,8 +65,6 @@ jobs:
# yamllint disable rule:line-length
- name: Commit updated README.md
id: commit_readme
permissions:
contents: write
run: |
git add README.md
git config --local user.email "github-actions[bot]@users.noreply.github.com"
Expand All @@ -88,8 +86,6 @@ jobs:
# yamllint disable rule:line-length
- name: Commit updated resources/coverage.txt resources/coverage.svg
id: commit
permissions:
contents: write
run: |
git add resources/coverage.txt resources/coverage.svg
git config --local user.email "github-actions[bot]@users.noreply.github.com"
Expand All @@ -104,8 +100,6 @@ jobs:

# yamllint disable rule:line-length
- name: Push changes
permissions:
contents: write
if: env.commit_status == 'committed' && github.actor != 'dependabot[bot]'
uses: ad-m/github-push-action@master
with:
Expand Down

0 comments on commit ffc6d04

Please sign in to comment.