Skip to content

Commit

Permalink
Add missing GITHUB_TOKEN for release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
hestad committed Sep 5, 2023
1 parent c1e523e commit 0300c6f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/actions/codeql/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


name: 'CodeQL'
description: 'Run CodeQL analysis'
runs:
Expand Down
6 changes: 6 additions & 0 deletions .github/actions/draft-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
name: 'Genereate draft release'
description: 'Appends all PR desctiptions to a draft release (creates/edits). Also adds labels to PRs'

inputs:
GITHUB_TOKEN:
description: 'The GitHub token to use for authentication'
required: true
runs:
using: "composite"
steps:
- uses: release-drafter/release-drafter@v5
with:
token: ${{ inputs.GITHUB_TOKEN }}

# generate-draft-release:
# name: Generate/update draft release
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ jobs:
contents: 'write' # needed to create/edit releases
pull-requests: 'write' # needed to add labels to pull requests
uses: navikt/su-se-bakover/.github/workflows/reusable-draft-release.yml@master
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
code-ql:
name: CodeQL
permissions:
contents: 'read'
security-events: 'write'
uses: navikt/su-se-bakover/.github/workflows/reusable-codeql.yml@master


7 changes: 6 additions & 1 deletion .github/workflows/reusable-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Draft release

on:
workflow_call:

secrets:
GITHUB_TOKEN:
required: true
description: 'secrets.GITHUB_TOKEN'
jobs:
draft-release:
permissions:
Expand All @@ -14,3 +17,5 @@ jobs:
- uses: actions/checkout@v3
- name: Draft release
uses: ./.github/actions/draft-release
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0300c6f

Please sign in to comment.