Skip to content

Commit

Permalink
ci: change permissions on auto-labeler
Browse files Browse the repository at this point in the history
limit permissions to just pull-requests: write, not conent: write.
I'm hoping this will limit the ability for the auto-labeler workflow
from creating a draft release

change image-name from hard-coded to github.repository

Signed-off-by: jmeridth <[email protected]>
  • Loading branch information
jmeridth committed Jan 25, 2025
1 parent c180b53 commit 9465bed
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/auto-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ permissions:
jobs:
main:
permissions:
contents: write
pull-requests: write
name: Auto label pull requests
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-auto-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ permissions:
jobs:
auto_labeler:
permissions:
contents: write
pull-requests: write
uses: ./.github/workflows/auto-labeler.yaml
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
attestations: write
uses: ./.github/workflows/release-image.yaml
with:
image-name: github/ospo-reusable-workflows
image-name: ${{ github.repository }}
full-tag: ${{ needs.release.outputs.full-tag }}
short-tag: ${{ needs.release.outputs.short-tag }}
create-attestation: true
Expand Down

0 comments on commit 9465bed

Please sign in to comment.