From ae8690ad8d164f4b641c3153b32d90579be51b28 Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Wed, 10 May 2023 10:40:53 +0200 Subject: [PATCH] Remove not-required stuff, add permission for PNG, skip truthy. --- templates/ansible-lint.j2 | 3 +++ templates/requirements2png.yml.j2 | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/ansible-lint.j2 b/templates/ansible-lint.j2 index d5c3e4b..f093849 100644 --- a/templates/ansible-lint.j2 +++ b/templates/ansible-lint.j2 @@ -16,3 +16,6 @@ exclude_paths: - ./.cache - ./.github - ./requirements.yml + +skip_list: + - yaml[truthy] diff --git a/templates/requirements2png.yml.j2 b/templates/requirements2png.yml.j2 index 20e53be..7dafac0 100644 --- a/templates/requirements2png.yml.j2 +++ b/templates/requirements2png.yml.j2 @@ -9,6 +9,8 @@ name: Ansible Graphviz jobs: build: runs-on: ubuntu-20.04 + permissions: + contents: write steps: - name: checkout uses: actions/checkout@v3 @@ -28,8 +30,6 @@ jobs: - name: save to png branch uses: ad-m/github-push-action@master with: - github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} - directory: {% raw %}${{ github.repository }}{% endraw %} force: true