Skip to content

Commit

Permalink
add badge test action
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBoehm committed Jan 16, 2025
1 parent 3740ac6 commit 43b38ac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,21 @@ jobs:
artifacts/*.zip, artifacts/*.bin
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

badges-test:
name: Create bagdge test
runs-on: ubuntu-24.04
steps:
- name: Get openDTU core release
run: |
echo "OPEN_DTU_CORE_RELEASE=$(git for-each-ref --sort=creatordate --format '%(refname) %(creatordate)' refs/tags | grep 'refs/tags/v' | tail -1 | sed 's#.*/##' | sed 's/ .*//')" >> $GITHUB_ENV
- name: Create openDTU-core-release-Badge
uses: schneegans/dynamic-badges-action@v1.7.0

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'OpenDTU-OnBattery Build' step
Uses Step
uses 'schneegans/dynamic-badges-action' with ref 'v1.7.0', not a pinned commit hash
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 856dda48c1cadac6ea495213340c612b
filename: openDTUcoreRelease.json
label: based on original OpenDTU
message: ${{ env.OPEN_DTU_CORE_RELEASE }}
color: lightblue

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions

0 comments on commit 43b38ac

Please sign in to comment.