Skip to content

[Dependencies] Updating Meziantou.Analyzer (Code Analysis) to 2.0.94 #26

[Dependencies] Updating Meziantou.Analyzer (Code Analysis) to 2.0.94

[Dependencies] Updating Meziantou.Analyzer (Code Analysis) to 2.0.94 #26

name: "Dependabot: Approve actions updates in template repos"
on:
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests
# could and should work, at least for public repos;
# tracking issue for this action's issue:
# https://github.com/ahmadnassri/action-dependabot-auto-merge/issues/60
pull_request_target:
types:
- opened
- edited
- reopened
- synchronize
- ready_for_review
branches:
- main
jobs:
enable-auto-merge:
if: |-
${{endsWith(github.repository, '-template') &&
startsWith(github.head_ref, 'dependabot/github_actions/')}}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
# Specifically check that dependabot (or another trusted party) created this pull-request, and that it has been labelled correctly.
steps:
- name: "Initialise Workspace"
shell: bash
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE"
- name: "Check Repo Owner"
shell: bash
run: echo "${{github.repository_owner}}"
- name: "Auto Merge"
uses: alexwilson/[email protected]
with:
github-token: ${{secrets.SOURCE_PUSH_TOKEN}}
merge-method: "MERGE"
auto_approve_dependabot:
if: |-
${{endsWith(github.repository, '-template') &&
startsWith(github.head_ref, 'dependabot/github_actions/')}}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: "Initialise Workspace"
shell: bash
run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE"
- name: "Check Repo Owner"
shell: bash
run: echo "${{"github.repository_owner}}"

Check failure on line 59 in .github/workflows/approve-dependabot.yml

View workflow run for this annotation

GitHub Actions / Dependabot: Approve actions updates in template repos

Invalid workflow file

The workflow is not valid. .github/workflows/approve-dependabot.yml (Line: 59, Col: 12): Unexpected symbol: '"github'. Located at position 1 within expression: "github.repository_owner
- name: "Approve"
uses: hmarr/auto-approve-action@v3
with:
github-token: ${{secrets.SOURCE_PUSH_TOKEN}}