Skip to content

Commit

Permalink
Use default token with permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cgraf-spiria committed Oct 29, 2024
1 parent a999f58 commit ca409d9
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ on:
jobs:
build:
runs-on: ubuntu-20.04

permissions:
contents: write
actions: write
attestations: write
steps:
- name: Checkout with token
if: github.event_name != 'pull_request'
uses: actions/checkout@v3
with:
token: ${{ secrets.API_GITHUB_TOKEN }}

- name: Checkout without token
if: github.event_name == 'pull_request'
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -32,5 +28,3 @@ jobs:
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 17.4
env:
GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}

0 comments on commit ca409d9

Please sign in to comment.