Skip to content

Commit def6544

Browse files
Merge branch 'master' into dependabot/github_actions/codecov/codecov-action-5.1.1
2 parents 59e5df7 + 74f3123 commit def6544

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.github/workflows/_codeql.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/[email protected].4
46+
uses: github/codeql-action/[email protected].9
4747
with:
4848
languages: python
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -56,7 +56,7 @@ jobs:
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below)
5858
- name: Autobuild
59-
uses: github/codeql-action/[email protected].4
59+
uses: github/codeql-action/[email protected].9
6060

6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -69,6 +69,6 @@ jobs:
6969
# ./location_of_script_within_repo/buildscript.sh
7070

7171
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/[email protected].4
72+
uses: github/codeql-action/[email protected].9
7373
with:
7474
category: "/language:python"

.github/workflows/_pypi_publish.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ name: PyPI Publish
1010

1111
on:
1212
workflow_call:
13+
secrets:
14+
API_TOKEN:
15+
required: true
1316

1417
permissions: read-all
1518

@@ -35,4 +38,5 @@ jobs:
3538
- name: Publish package distributions to PyPI (optional - testpypi)
3639
uses: pypa/gh-action-pypi-publish@release/v1
3740
with:
41+
password: ${{ secrets.API_TOKEN }}
3842
repository-url: https://upload.pypi.org/legacy/

.github/workflows/_pypi_test_publish.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ name: PyPI Publish
1010

1111
on:
1212
workflow_call:
13+
secrets:
14+
API_TOKEN:
15+
required: true
1316

1417
permissions: read-all
1518

@@ -32,4 +35,5 @@ jobs:
3235
- name: Publish package distributions to PyPI (optional - testpypi)
3336
uses: pypa/gh-action-pypi-publish@release/v1
3437
with:
38+
password: ${{ secrets.API_TOKEN }}
3539
repository-url: https://test.pypi.org/legacy/

.github/workflows/cicd.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
types: [created]
1818

1919
concurrency:
20-
group: CICD-${{ github.ref }}
20+
group: ${{ github.workflow }}-${{ github.ref }}
2121
cancel-in-progress: true
2222

2323
jobs:
@@ -101,6 +101,8 @@ jobs:
101101
- CodeQL
102102
name: Upload current version to Test PyPI
103103
uses: ./.github/workflows/_pypi_test_publish.yaml
104+
secrets:
105+
API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
104106

105107
## Upload the python-kraken-sdk to Production PyPI
106108
##
@@ -116,3 +118,5 @@ jobs:
116118
- CodeQL
117119
name: Upload the current release to PyPI
118120
uses: ./.github/workflows/_pypi_publish.yaml
121+
secrets:
122+
API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ jobs:
6767

6868
# Upload the results to GitHub's code scanning dashboard.
6969
- name: "Upload to code-scanning"
70-
uses: github/codeql-action/upload-sarif@a1695c562bbfa68dc5ab58c9b5e9f616b52bf5be # v2.2.4
70+
uses: github/codeql-action/upload-sarif@dd7559424621a6dd0b32ababe9e4b271a87f78d2 # v2.2.4
7171
with:
7272
sarif_file: results.sarif

0 commit comments

Comments
 (0)