Skip to content

Commit 6975bad

Browse files
authored
set permissions of pipeline (#27)
1 parent 4992422 commit 6975bad

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
if: success()
1414
name: Create PreRelease
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
1618
outputs:
1719
package_version: ${{ steps.ci-metadata.outputs.ci_run_number }}
1820

@@ -51,6 +53,8 @@ jobs:
5153
name: Create Release
5254
runs-on: ubuntu-latest
5355
needs: prerelease
56+
permissions:
57+
contents: write
5458
steps:
5559
- name: Create GitHub Release
5660
id: create_release

src/dataworkbench/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,4 @@ def get_secret(key: str, scope: str = "secrets") -> str:
4646
# Example usage
4747
if __name__ == "__main__":
4848
CLIENT_ID = get_secret("ClientId")
49-
CLIENT_SECRET = get_secret("ClientSecret")
50-
print(f"client-id: {CLIENT_ID}")
49+
CLIENT_SECRET = get_secret("ClientSecret")

0 commit comments

Comments
 (0)