diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index b30f4c2..d1720e8 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,3 +1,4 @@ +--- blank_issues_enabled: true contact_links: - name: Ask a question or get support diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ff5a456..19bbac6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,4 @@ +--- version: 2 updates: - package-ecosystem: docker diff --git a/.github/workflows/anchore-analysis.yml b/.github/workflows/anchore-analysis.yml index 4a5dbe0..16ca790 100644 --- a/.github/workflows/anchore-analysis.yml +++ b/.github/workflows/anchore-analysis.yml @@ -1,10 +1,13 @@ +--- name: Anchore Container Scan on: push: - branches: [ main ] + branches: + - main pull_request: - branches: [ main ] + branches: + - main schedule: - cron: '17 7 * * 5' @@ -16,17 +19,17 @@ jobs: Anchore-Build-Scan: runs-on: ubuntu-24.04 steps: - - name: Checkout the code - uses: actions/checkout@v4 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag localbuild/testimage:latest - - name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled - uses: anchore/scan-action@v6 - id: anchore_scan - with: - image: "localbuild/testimage:latest" - fail-build: false - - name: Upload Anchore Scan Report - uses: github/codeql-action/upload-sarif@v3 - with: - sarif_file: ${{ steps.anchore_scan.outputs.sarif }} + - name: Checkout the code + uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag localbuild/testimage:latest + - name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled + uses: anchore/scan-action@v6 + id: anchore_scan + with: + image: "localbuild/testimage:latest" + fail-build: false + - name: Upload Anchore Scan Report + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: ${{ steps.anchore_scan.outputs.sarif }} diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 6f6a6a9..88dec57 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,3 +1,4 @@ +--- name: 'Dependency Review' on: [pull_request] diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 734a71c..0fad353 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,3 +1,4 @@ +--- name: Lint on: pull_request @@ -17,6 +18,22 @@ jobs: name: markdown runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v4 - - name: Run markdownlint - uses: DavidAnson/markdownlint-cli2-action@v18 + - uses: actions/checkout@v4 + - name: Run markdownlint + uses: DavidAnson/markdownlint-cli2-action@v18 + + actionlint: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - uses: reviewdog/action-actionlint@v1 + + yamllint: + name: Yamllint + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - name: Run Yamllint + uses: frenck/action-yamllint@v1.5.0 + with: + strict: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e25f020..0d526f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,4 @@ +--- name: Release on: workflow_run: @@ -23,29 +24,29 @@ jobs: DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} - name: Major version tag id: major-version - if: ${{ steps.version.outputs.new_tag }} != "" + if: ${{ steps.version.outputs.new_tag }} uses: actions/github-script@v7 with: script: | core.setOutput('tag', '${{ steps.version.outputs.new_tag }}'.split('.')[0]) - name: Tag ${{ steps.major-version.outputs.tag }} - if: ${{ steps.version.outputs.new_tag }} != "" + if: ${{ steps.version.outputs.new_tag }} run: | git tag --force ${{ steps.major-version.outputs.tag }} git push origin ${{ steps.major-version.outputs.tag }} --force - name: Get current date - if: ${{ steps.version.outputs.new_tag }} != "" + if: ${{ steps.version.outputs.new_tag }} id: date - run: echo "::set-output name=date::$(date --iso-8601)" + run: echo "name=date::$(date --iso-8601)" >> "$GITHUB_STATE" - name: Get shoutrrr version - if: ${{ steps.version.outputs.new_tag }} != "" + if: ${{ steps.version.outputs.new_tag }} id: shoutrrr - run: echo "::set-output name=version::$(docker run --rm $(docker build --quiet - < Dockerfile) --version)" + run: echo "name=version::$(docker run --rm "$(docker build --quiet - < Dockerfile)" --version)" >> "$GITHUB_STATE" - name: Build full ChangeLog - if: ${{ steps.version.outputs.new_tag }} != '' + if: ${{ steps.version.outputs.new_tag }} run: npx conventional-changelog-cli --release-count=0 --preset=eslint --outfile="${{ runner.temp }}/FullChangeLog.md" - name: Create/update release ${{ steps.major-version.outputs.tag }} - if: ${{ steps.version.outputs.new_tag }} != "" + if: ${{ steps.version.outputs.new_tag }} uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -54,10 +55,10 @@ jobs: name: ${{ steps.version.outputs.new_tag }} (${{ steps.date.outputs.date }} / ${{ steps.shoutrrr.outputs.version }}) bodyFile: ${{ runner.temp }}/FullChangeLog.md - name: Build ChangeLog - if: ${{ steps.version.outputs.new_tag }} != '' + if: ${{ steps.version.outputs.new_tag }} run: npx conventional-changelog-cli --release-count=2 --outfile="${{ runner.temp }}/ChangeLog.md" - name: Create release ${{ steps.version.outputs.new_tag }} - if: ${{ steps.version.outputs.new_tag }} != "" + if: ${{ steps.version.outputs.new_tag }} uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 162d777..9e9d158 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,3 +1,4 @@ +--- name: Build and test on: pull_request: diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..7e0c742 --- /dev/null +++ b/.yamllint @@ -0,0 +1,14 @@ +--- +extends: default + +rules: + indentation: + spaces: 2 + line-length: disable + truthy: + check-keys: false + braces: + min-spaces-inside: 1 + max-spaces-inside: 1 + min-spaces-inside-empty: 0 + max-spaces-inside-empty: 0 diff --git a/action.yml b/action.yml index 5e46d4c..39a3c26 100644 --- a/action.yml +++ b/action.yml @@ -1,3 +1,4 @@ +--- name: 'Shoutrrr action' description: 'Notifications using https://containrrr.dev/shoutrrr' branding: