Skip to content

Commit

Permalink
Merge pull request #114 from ASFHyP3/develop
Browse files Browse the repository at this point in the history
Release v0.11.0
  • Loading branch information
jtherrmann authored Jan 16, 2024
2 parents 5addd36 + 1020c90 commit a840760
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ on:
- develop
jobs:
call-changelog-check-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.10.0
secrets:
USER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/create-jira-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
call-create-jira-issue-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.10.0
secrets:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeled-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ on:

jobs:
call-labeled-pr-check-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.10.0
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
call-release-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.10.0
with:
release_prefix: Actions
secrets:
Expand Down
18 changes: 4 additions & 14 deletions .github/workflows/reusable-secrets-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,8 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-python@v5
- name: Secret Scanning
uses: trufflesecurity/trufflehog@v3.63.8
with:
python-version: 3.x

- name: Pip install trufflehog
shell: bash
run: |
python -m pip install trufflehog
- name: Scan for secrets with trufflehog
shell: bash
run: |
export LAST_TAG_HASH=$(git rev-list -1 $(git describe --abbrev=0))
trufflehog --regex --entropy True --since_commit "${LAST_TAG_HASH}" \
--exclude_paths .trufflehog.txt file://"${PWD}"
base: main
extra_args: --only-verified
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ on: push

jobs:
call-secrets-analysis-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.10.0
2 changes: 1 addition & 1 deletion .github/workflows/tag-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ on:

jobs:
call-bump-version-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.10.0
secrets:
USER_TOKEN: ${{ secrets.TOOLS_BOT_PAK }}
6 changes: 3 additions & 3 deletions .github/workflows/update-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
call-git-object-name-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-git-object-name.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-git-object-name.yml@v0.10.0

upate_actions_examples:
needs: call-git-object-name-workflow
Expand All @@ -29,9 +29,9 @@ jobs:
OBJECT_VERSION: ${{ needs.call-git-object-name-workflow.outputs.name }}
run: |
if [[ -z "${INPUT_VERSION}" ]]; then
echo "ACTIONS_VERSION=${OBJECT_VERSION}" >> $GITHUB_ENV
echo "ACTIONS_VERSION=${OBJECT_VERSION%%-*}" >> $GITHUB_ENV
else
echo "ACTIONS_VERSION=${INPUT_VERSION}" >> $GITHUB_ENV
echo "ACTIONS_VERSION=${INPUT_VERSION%%-*}" >> $GITHUB_ENV
fi
- name: Create update branch
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ 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.11.0]

### Fixed
- [`update-examples`](.github/workflows/update-examples.yml) workflow will now strip distance and hash (longest `-*` match) from the input or calculated version numbers.
- [`reusable-secrets-analysis.yml`](.github/workflows/reusable-secrets-analysis.yml) now uses the Trufflehog Github Action to scan for only verified secrets, which should reduce or eliminate false positives.

### Removed
- [`reusable-secrets-analysis.yml`](.github/workflows/reusable-secrets-analysis.yml) no longer recognizes `.trufflehog.txt`, which was previously used to specify exclude paths.

## [0.10.0]

### Added
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

jobs:
call-bump-version-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.10.0
with:
user: tools-bot # Optional; default shown
email: UAF-asf-apd@alaska.edu # Optional; default shown
Expand Down Expand Up @@ -57,7 +57,7 @@ on:
jobs:
call-changelog-check-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.10.0
secrets:
USER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Expand All @@ -77,7 +77,7 @@ on:
jobs:
call-create-jira-issue-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.10.0
secrets:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
Expand Down Expand Up @@ -130,13 +130,13 @@ on:
jobs:
call-version-info-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.10.0
with:
conda_env_name: hyp3-plugin
call-docker-ecr-workflow:
needs: call-version-info-workflow
uses: ASFHyP3/actions/.github/workflows/reusable-docker-ecr.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-docker-ecr.yml@v0.10.0
with:
version_tag: ${{ needs.call-version-info-workflow.outputs.version_tag }}
ecr_registry: 845172464411.dkr.ecr.us-west-2.amazonaws.com
Expand Down Expand Up @@ -171,13 +171,13 @@ on:
jobs:
call-version-info-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.10.0
with:
conda_env_name: hyp3-plugin
call-docker-ghcr-workflow:
needs: call-version-info-workflow
uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.10.0
with:
version_tag: ${{ needs.call-version-info-workflow.outputs.version_tag }}
user: ${{ github.actor }}
Expand All @@ -198,7 +198,7 @@ on: push
jobs:
call-flake8-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-flake8.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-flake8.yml@v0.10.0
with:
local_package_names: hyp3_plugin # Required; comma-seperated list of names that should be considered local to your application
excludes: hyp3_plugin/ugly.py # Optional; comma-separated list of glob patterns to exclude from checks
Expand All @@ -217,7 +217,7 @@ on: push
jobs:
call-ruff-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-ruff.yml@v0.10.0
```

to ensure the Python code is styled correctly.
Expand Down Expand Up @@ -275,7 +275,7 @@ on:
jobs:
call-git-object-name-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-git-object-name.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-git-object-name.yml@v0.10.0
echo-git-object-name-outputs:
needs: call-git-object-name-workflow
Expand Down Expand Up @@ -305,7 +305,7 @@ on:
jobs:
call-labeled-pr-check-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.10.0
```
to ensure a release label is included on any PR to `main`.

Expand All @@ -329,7 +329,7 @@ on:
jobs:
call-pytest-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.10.0
with:
local_package_name: hyp3_plugin # Required; package to produce a coverage report for
fail_fast: false # Optional; default shown
Expand Down Expand Up @@ -358,7 +358,7 @@ on:
jobs:
call-release-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.10.0
with:
release_prefix: HyP3-CI
release_branch: main # Optional; default shown
Expand Down Expand Up @@ -387,7 +387,7 @@ on:
jobs:
call-release-checklist-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-release-checklist-comment.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-release-checklist-comment.yml@v0.10.0
permissions:
pull-requests: write
with:
Expand Down Expand Up @@ -416,7 +416,7 @@ on: push
jobs:
call-secrets-analysis-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.10.0
```
to scan every push for secrets.

Expand All @@ -442,7 +442,7 @@ on:
jobs:
call-version-info-workflow:
uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.9.0
uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.10.0
with:
python_version: '3.9' # Optional; default shown
Expand Down

0 comments on commit a840760

Please sign in to comment.