maint: fix pedantic zizmor problems
This commit is contained in:
@@ -46,8 +46,9 @@ runs:
|
|||||||
id: tags
|
id: tags
|
||||||
env:
|
env:
|
||||||
BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }}
|
BRANCH_NAME_INPUT: ${{ github.event.inputs.branch_name }}
|
||||||
|
EVENT_NAME: ${{ github.event_name }}
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
if [ "${EVENT_NAME}" = "workflow_dispatch" ]; then
|
||||||
BRANCH_NAME="${BRANCH_NAME_INPUT}"
|
BRANCH_NAME="${BRANCH_NAME_INPUT}"
|
||||||
else
|
else
|
||||||
BRANCH_NAME="${GITHUB_REF##*/}"
|
BRANCH_NAME="${GITHUB_REF##*/}"
|
||||||
|
|||||||
@@ -6,11 +6,16 @@ on:
|
|||||||
# on demand
|
# on demand
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-update:
|
auto-update:
|
||||||
|
name: "Auto Update Binance Leverage Tiers"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
environment:
|
||||||
name: develop
|
name: develop
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ on:
|
|||||||
concurrency:
|
concurrency:
|
||||||
group: "${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}"
|
group: "${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}"
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
permissions:
|
permissions: {}
|
||||||
repository-projects: read
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
name: "Tests and Linting"
|
name: "Tests and Linting"
|
||||||
@@ -275,6 +275,7 @@ jobs:
|
|||||||
|
|
||||||
# Notify only once - when CI completes (and after deploy) in case it's successful
|
# Notify only once - when CI completes (and after deploy) in case it's successful
|
||||||
notify-complete:
|
notify-complete:
|
||||||
|
name: "Notify CI Completion"
|
||||||
needs: [
|
needs: [
|
||||||
build,
|
build,
|
||||||
build-linux-online
|
build-linux-online
|
||||||
@@ -282,8 +283,6 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# Discord notification can't handle schedule events
|
# Discord notification can't handle schedule events
|
||||||
if: github.event_name != 'schedule' && github.repository == 'freqtrade/freqtrade'
|
if: github.event_name != 'schedule' && github.repository == 'freqtrade/freqtrade'
|
||||||
permissions:
|
|
||||||
repository-projects: read
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check user permission
|
- name: Check user permission
|
||||||
@@ -365,7 +364,7 @@ jobs:
|
|||||||
name: testpypi
|
name: testpypi
|
||||||
url: https://test.pypi.org/p/freqtrade
|
url: https://test.pypi.org/p/freqtrade
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write # Needed for pypa/gh-action-pypi-publish
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
@@ -394,7 +393,7 @@ jobs:
|
|||||||
name: pypi
|
name: pypi
|
||||||
url: https://pypi.org/p/freqtrade
|
url: https://pypi.org/p/freqtrade
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write # Needed for pypa/gh-action-pypi-publish
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
@@ -420,7 +419,7 @@ jobs:
|
|||||||
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release') && github.repository == 'freqtrade/freqtrade'
|
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'release') && github.repository == 'freqtrade/freqtrade'
|
||||||
uses: ./.github/workflows/docker-build.yml
|
uses: ./.github/workflows/docker-build.yml
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write # Needed to push package versions
|
||||||
contents: read
|
contents: read
|
||||||
secrets:
|
secrets:
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
@@ -434,6 +433,6 @@ jobs:
|
|||||||
# Only run on push, schedule, or release events
|
# Only run on push, schedule, or release events
|
||||||
if: (github.event_name == 'push' || github.event_name == 'schedule') && github.repository == 'freqtrade/freqtrade'
|
if: (github.event_name == 'push' || github.event_name == 'schedule') && github.repository == 'freqtrade/freqtrade'
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write # Needed to delete package versions
|
||||||
with:
|
with:
|
||||||
package_name: 'freqtrade'
|
package_name: 'freqtrade'
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ on:
|
|||||||
# disable permissions for all of the available permissions
|
# disable permissions for all of the available permissions
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-docs:
|
build-docs:
|
||||||
|
|||||||
@@ -22,8 +22,9 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
name: "Build and Push Devcontainer Image"
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write # Needed to push package versions
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
|
|||||||
@@ -17,6 +17,10 @@ on:
|
|||||||
default: 'develop'
|
default: 'develop'
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
@@ -159,7 +163,7 @@ jobs:
|
|||||||
deploy-arm:
|
deploy-arm:
|
||||||
name: "Deploy Docker ARM64"
|
name: "Deploy Docker ARM64"
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write # Needed to push package versions
|
||||||
needs: [ deploy-docker ]
|
needs: [ deploy-docker ]
|
||||||
# Only run on 64bit machines
|
# Only run on 64bit machines
|
||||||
runs-on: [self-hosted, linux, ARM64]
|
runs-on: [self-hosted, linux, ARM64]
|
||||||
|
|||||||
@@ -4,11 +4,16 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- stable
|
- stable
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
# disable permissions for all of the available permissions
|
# disable permissions for all of the available permissions
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
dockerHubDescription:
|
dockerHubDescription:
|
||||||
|
name: "Update Docker Hub Description"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
|
|||||||
@@ -25,6 +25,10 @@ on:
|
|||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PACKAGE_NAME: "freqtrade"
|
PACKAGE_NAME: "freqtrade"
|
||||||
|
|
||||||
@@ -37,7 +41,7 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
if: github.repository == 'freqtrade/freqtrade'
|
if: github.repository == 'freqtrade/freqtrade'
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
packages: write # Needed to delete package versions
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Delete untagged Package Versions"
|
- name: "Delete untagged Package Versions"
|
||||||
|
|||||||
@@ -9,8 +9,13 @@ on:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-update:
|
auto-update:
|
||||||
|
name: Auto-update pre-commit hooks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user