Skip to content

Commit

Permalink
Add workflow debug workflow
Browse files Browse the repository at this point in the history
b/395119204
  • Loading branch information
oxve committed Feb 7, 2025
1 parent 6b97831 commit 3d0f6a6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/workflow_debug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Workflow Debug

Check failure

Code scanning / Scorecard

Token-Permissions High

score is 0: no topLevel permission defined
Remediation tip: Visit https://app.stepsecurity.io/secureworkflow.
Tick the 'Restrict permissions for GITHUB_TOKEN'
Untick other options
NOTE: If you want to resolve multiple issues at once, you can visit https://app.stepsecurity.io/securerepo instead.
Click Remediation section below for further remediation help

on:
pull_request:
types: [opened, reopened, synchronize, labeled]
branches:
- main
- experimental/*
- feature/*
push:
branches:
- main
- experimental/*
- feature/*


jobs:
debug:
runs-on: ubuntu-latest
permissions: {}
timeout-minutes: 10
steps:
- name: Print github
shell: bash
run: |
echo '${{ toJSON(github) }}' | jq '.'
- name: Print concurrency expression
shell: bash
run: |
echo "${{ github.workflow }}-${{ github.event_name }}-platform @ ${{ github.event.label.name || github.event.pull_request.number || github.sha }} @ ${{ github.event.label.name && github.event.pull_request.number || github.event.action }}"

0 comments on commit 3d0f6a6

Please sign in to comment.