Skip to content

Commit

Permalink
ossf: fix token permissions (#2410)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
mmorel-35 authored Jan 6, 2024
1 parent eb26959 commit 859a76b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/latest_release.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: Latest Release

permissions:
contents: read

on:
push:
branches:
- "main"
paths-ignore:
- "**/*.png"

permissions:
contents: write

jobs:
latest-release:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./tools/github-actions/setup-deps
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Release

permissions:
contents: read

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*.*.*"
permissions:
contents: write

jobs:
release:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

Expand Down

0 comments on commit 859a76b

Please sign in to comment.