Skip to content

Commit

Permalink
Give access token as regular input
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Jun 5, 2024
1 parent 58997e1 commit e7e682c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/conan-package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ on:
description: 'location of the conanfile.py defaults to `.`'
type: string

token:
required: false
default: ${{ secrets.CURA_CONAN_PACKAGE_RELEASE_PAT }}
description: 'Personal access token (PAT) used to fetch the repository'

workflow_call:
inputs:
organization:
Expand Down Expand Up @@ -127,6 +132,11 @@ on:
default: "."
type: string

token:
required: false
default: ${{ secrets.CURA_CONAN_PACKAGE_RELEASE_PAT }}
description: 'Personal access token (PAT) used to fetch the repository'

permissions:
contents: read

Expand All @@ -146,7 +156,7 @@ jobs:
repository: ${{ inputs.organization }}/${{ inputs.repository }}
ref: ${{ inputs.ref_name }}
fetch-depth: 1
token: ${{ secrets.CURA_CONAN_PACKAGE_RELEASE_PAT }}
token: ${{ inputs.token }}

- name: Sync pip requirements
run: |
Expand Down

0 comments on commit e7e682c

Please sign in to comment.