Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/workflows/build-and-deploy.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
jobs:
call-changelog-check-workflow:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.20.0
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.21.0

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 2 months ago

To fix this issue, an explicit permissions block should be added to the job definition that calls the reusable workflow. This block should grant only the minimum permissions required by the job/reusable workflow. Since we do not know precisely what permissions the reusable workflow needs, a safe minimal starting point based on best practice is contents: read (to allow reading repo content) and, if necessary, more restrictive/targeted permissions. The block should be added under the job definition (call-changelog-check-workflow) at line 15 or 16, preceding the uses: line. No other code changes, imports, or definitions are required.

Suggested changeset 1
.github/workflows/changelog.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
--- a/.github/workflows/changelog.yml
+++ b/.github/workflows/changelog.yml
@@ -14,4 +14,6 @@
 jobs:
   call-changelog-check-workflow:
     # Docs: https://github.com/ASFHyP3/actions
+    permissions:
+      contents: read
     uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.21.0
EOF
@@ -14,4 +14,6 @@
jobs:
call-changelog-check-workflow:
# Docs: https://github.com/ASFHyP3/actions
permissions:
contents: read
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.21.0
Copilot is powered by AI and may make mistakes. Always verify output.
14 changes: 14 additions & 0 deletions .github/workflows/distribute.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build and Distribute to PyPI

on:
push:
tags:
- 'v*'

jobs:
call-pypi-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-pypi.yml@v0.21.0
permissions:
contents: read
secrets:
PYPI_TOKEN: ${{ secrets.TOOLS_PYPI_PAK }}
2 changes: 1 addition & 1 deletion .github/workflows/labeled-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
jobs:
call-labeled-pr-check-workflow:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.20.0
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.21.0

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 2 months ago

To fix the problem, add a permissions block to the job or at the root of the workflow, specifying the minimal privileges required. Since this workflow calls a reusable PR-label-check workflow (likely performing read-only checks on PR labels or metadata), the minimal starting point is contents: read. If the called workflow requires more (for example, modifying labels), we may also need pull-requests: write. Within the context given, the block should be added under the job's definition (call-labeled-pr-check-workflow) as a sibling to uses: (recommended for jobs that use reusable workflows). No imports or additional code is needed; only YAML key/value pairs added at the correct place.


Suggested changeset 1
.github/workflows/labeled-pr.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/labeled-pr.yml b/.github/workflows/labeled-pr.yml
--- a/.github/workflows/labeled-pr.yml
+++ b/.github/workflows/labeled-pr.yml
@@ -13,4 +13,7 @@
 jobs:
   call-labeled-pr-check-workflow:
     # Docs: https://github.com/ASFHyP3/actions
+    permissions:
+      contents: read
+      pull-requests: write
     uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.21.0
EOF
@@ -13,4 +13,7 @@
jobs:
call-labeled-pr-check-workflow:
# Docs: https://github.com/ASFHyP3/actions
permissions:
contents: read
pull-requests: write
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.21.0
Copilot is powered by AI and may make mistakes. Always verify output.
2 changes: 1 addition & 1 deletion .github/workflows/release-checklist-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
call-release-workflow:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/reusable-release-checklist-comment.yml@v0.20.0
uses: ASFHyP3/actions/.github/workflows/reusable-release-checklist-comment.yml@v0.21.0
permissions:
pull-requests: write
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
jobs:
call-release-workflow:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.20.0
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.21.0
with:
release_prefix: SatChip
release_branch: main
develop_branch: develop
sync_pr_label: actions-bot
secrets:
USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
6 changes: 3 additions & 3 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
jobs:
call-secrets-analysis-workflow:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.20.0
uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.21.0

call-ruff-workflow:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.20.0
uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.21.0

call-mypy-workflow:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
uses: ASFHyP3/actions/.github/workflows/reusable-mypy.yml@v0.20.0
uses: ASFHyP3/actions/.github/workflows/reusable-mypy.yml@v0.21.0
permissions:
contents: read
2 changes: 1 addition & 1 deletion .github/workflows/tag-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
jobs:
call-bump-version-workflow:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.20.0
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.21.0
secrets:
USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
jobs:
call-pytest-workflow:
# Docs: https://github.com/ASFHyP3/actions
uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.20.0
uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.21.0
with:
local_package_name: satchip
python_versions: >-
["3.11", "3.12", "3.13"]

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.1]

### Added
* New builds are now automatically published to PyPI on release.

## [0.6.0]

### Added
Expand Down