Rename folders

This commit is contained in:
Christopher Schleiden
2023-02-22 15:52:40 -08:00
parent 16cc4d9bda
commit 2a3d63551f
469 changed files with 0 additions and 0 deletions
+79
View File
@@ -0,0 +1,79 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
name: Update awesome list
on:
workflow_dispatch:
schedule:
- cron: '0 */12 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Awesome generator
uses: simonecorsi/mawesome@v2
with:
api-token: ${{ secrets.API_TOKEN }} # <--- there is a unicode whitespace character here, VSCode will highlight it, the web UI does not
compact-by-topic: 'true'
github-name: ${{ github.repository_owner }}
---
{
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_checkout",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/checkout@v3"
},
{
"id": "__simonecorsi_mawesome",
"name": "Awesome generator",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "simonecorsi/mawesome@v2",
"with": {
"type": 2,
"map": [
{
"Key": "api-token",
"Value": {
"type": 3,
"expr": "secrets.API_TOKEN"
}
},
{
"Key": "compact-by-topic",
"Value": "true"
},
{
"Key": "github-name",
"Value": {
"type": 3,
"expr": "github.repository_owner"
}
}
]
}
}
]
}
]
}
+44
View File
@@ -0,0 +1,44 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_checkout",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/checkout@v3"
},
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"continue-on-error": true,
"run": "echo hi"
}
]
}
]
}
+100
View File
@@ -0,0 +1,100 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
# Env is a string-string mapping. Null, bool, and numbers are all coerced to strings.
#
# When numbers are coerced to string, choosing too high/low of a precision are both problematic.
# This is due to how fractional numbers are represented in double-precision floating point format.
#
# The chosen format specifier produces the best results overall results.
- run: printenv
env:
"null": !!null
bool1: !!bool true
bool2: !!bool false
num1: !!float 0.84551240822557006 # Coerces to string "0.84551240822557"
num2: !!float 123456
num3: !!float 0.123456
num4: !!float 123456.123456
num5: !!float 1587106672383762434 # Coerces to string "1.58710667238376E+18" ; It would be nicer if this number successfully round-tripped, i.e. coerces to string "1587106672383762434"
num6: !!float .inf
num7: !!float -.inf
num8: !!float .nan
---
{
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"env": {
"type": 2,
"map": [
{
"Key": "null",
"Value": ""
},
{
"Key": "bool1",
"Value": "true"
},
{
"Key": "bool2",
"Value": "false"
},
{
"Key": "num1",
"Value": "0.84551240822557"
},
{
"Key": "num2",
"Value": "123456"
},
{
"Key": "num3",
"Value": "0.123456"
},
{
"Key": "num4",
"Value": "123456.123456"
},
{
"Key": "num5",
"Value": "1.58710667238376E+18"
},
{
"Key": "num6",
"Value": "Infinity"
},
{
"Key": "num7",
"Value": "-Infinity"
},
{
"Key": "num8",
"Value": "NaN"
}
]
},
"run": "printenv"
}
]
}
]
}
+146
View File
@@ -0,0 +1,146 @@
include-source: false # Drop file/line/col from output
---
on: push
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
build2:
runs-on: linux
concurrency: ci-${{ github.ref }}
build3:
runs-on: linux
concurrency: staging
build4:
runs-on: macos-latest
concurrency:
group: ref
cancel-in-progress: ${{ github.ref }}
---
{
"concurrency": {
"type": 2,
"map": [
{
"Key": "group",
"Value": {
"type": 3,
"expr": "github.ref"
}
},
{
"Key": "cancel-in-progress",
"Value": true
}
]
},
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"concurrency": {
"type": 2,
"map": [
{
"Key": "group",
"Value": {
"type": 3,
"expr": "github.ref"
}
},
{
"Key": "cancel-in-progress",
"Value": true
}
]
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_checkout",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/checkout@v3"
},
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"continue-on-error": true,
"run": "echo hi"
}
]
},
{
"type": "job",
"id": "build2",
"name": "build2",
"if": {
"type": 3,
"expr": "success()"
},
"concurrency": {
"type": 3,
"expr": "format('ci-{0}', github.ref)"
},
"runs-on": "linux"
},
{
"type": "job",
"id": "build3",
"name": "build3",
"if": {
"type": 3,
"expr": "success()"
},
"concurrency": "staging",
"runs-on": "linux"
},
{
"type": "job",
"id": "build4",
"name": "build4",
"if": {
"type": 3,
"expr": "success()"
},
"concurrency": {
"type": 2,
"map": [
{
"Key": "group",
"Value": "ref"
},
{
"Key": "cancel-in-progress",
"Value": {
"type": 3,
"expr": "github.ref"
}
}
]
},
"runs-on": "macos-latest"
}
]
}
+20
View File
@@ -0,0 +1,20 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
# Purposeful typo in run
- runn: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/error.yml (Line: 7, Col: 9): Unexpected value 'runn'"
},
{
"Message": ".github/workflows/error.yml (Line: 7, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory"
}
]
}
+18
View File
@@ -0,0 +1,18 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
bad-anchor-tag:
runs-on: ubuntu-latest
steps:
- run: &echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-anchor-tag.yml: Anchors are not currently supported. Remove the anchor 'echo'"
}
]
}
@@ -0,0 +1,16 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo ${{ }}
---
{
"errors": [
{
"Message": ".github/workflows/errors-empty-expression.yml (Line: 6, Col: 14): An expression was expected"
}
]
}
@@ -0,0 +1,21 @@
include-source: false # Drop file/line/col from output
---
name: Mixed String Expr ${{ format('hello {0}', 'world') }}
on:
${{ format('expression-mapping-key {0}', 'as-key') }}:
jobs:
${{ format('hello {0}', 'world') }}
---
{
"errors": [
{
"Message": ".github/workflows/errors-expression-not-allowed.yml (Line: 1, Col: 7): A template expression is not allowed in this context"
},
{
"Message": ".github/workflows/errors-expression-not-allowed.yml (Line: 3, Col: 3): A template expression is not allowed in this context"
},
{
"Message": ".github/workflows/errors-expression-not-allowed.yml (Line: 5, Col: 3): A template expression is not allowed in this context"
}
]
}
@@ -0,0 +1,16 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.event_name
---
{
"errors": [
{
"Message": ".github/workflows/errors-expression-not-closed.yml (Line: 6, Col: 14): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found."
}
]
}
+79
View File
@@ -0,0 +1,79 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
build:
runs-on: ubuntu-latest
concurrency: ${{ secrets.foo #no closing brace
steps:
- run: echo hi
build2:
runs-on: ubuntu-latest
concurrency: ${{ secrets.foo }}
steps:
- run: echo hi
build3:
runs-on: ubuntu-latest
concurrency: ${{ }} #empty expression
steps:
- run: echo hi
build4:
if: ${{ env == 5 }} #env not defined
runs-on: linux
steps:
- run: echo hi
build5:
if: ${{ "0xFZ" }}
runs-on: linux
steps:
- run: echo hi
build6:
if: ${{ withJson() }} #not real function
runs-on: linux
steps:
- run: echo hi
build7:
if: ${{ foo" }} #missing starting quotation
runs-on: linux
steps:
- run: echo hi
build8:
runs-on: linux
cancel-timeout-minutes: ${{ "0x" }} #Not a number
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-expressions.yml (Line: 5, Col: 18): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found."
},
{
"Message": ".github/workflows/errors-expressions.yml (Line: 10, Col: 18): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.foo"
},
{
"Message": ".github/workflows/errors-expressions.yml (Line: 15, Col: 18): An expression was expected"
},
{
"Message": ".github/workflows/errors-expressions.yml (Line: 19, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env == 5"
},
{
"Message": ".github/workflows/errors-expressions.yml (Line: 24, Col: 9): Unexpected symbol: '\"0xFZ\"'. Located at position 1 within expression: \"0xFZ\""
},
{
"Message": ".github/workflows/errors-expressions.yml (Line: 29, Col: 9): Unrecognized function: 'withJson'. Located at position 1 within expression: withJson()"
},
{
"Message": ".github/workflows/errors-expressions.yml (Line: 34, Col: 9): Unexpected symbol: 'foo\"'. Located at position 1 within expression: foo\""
},
{
"Message": ".github/workflows/errors-expressions.yml (Line: 40, Col: 29): Unexpected symbol: '\"0x\"'. Located at position 1 within expression: \"0x\""
},
{
"Message": ".github/workflows/errors-expressions.yml (Line: 40, Col: 29): Unexpected value '${{ \"0x\" }}'"
}
]
}
+25
View File
@@ -0,0 +1,25 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
run:
runs-on: ubuntu-latest
env:
bad_insert1: "This is a bad ${{ insert }}"
bad_insert2: "${{ insert }} are bad at the beginning"
${{ insert }}: ${{ github.ref }}
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-insert.yml (Line: 6, Col: 20): The directive 'insert' is not allowed in this context. Directives are not supported for expressions that are embedded within a string. Directives are only supported when the entire value is an expression."
},
{
"Message": ".github/workflows/errors-insert.yml (Line: 7, Col: 20): The directive 'insert' is not allowed in this context. Directives are not supported for expressions that are embedded within a string. Directives are only supported when the entire value is an expression."
}
]
}
@@ -0,0 +1,17 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- null : ' '
run: echo {{ 😀 }}
---
{
"errors": [
{
"Message": ".github/workflows/errors-invalid-mapping-key.yml (Line: 6, Col: 9): Unexpected value ''"
}
]
}
@@ -0,0 +1,20 @@
include-source: false # Drop file/line/col from output
---
on: push
permissions:
contents: invalid
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"errors": [
{
"Message": ".github/workflows/errors-invalid-permissions.yml (Line: 3, Col: 13): Unexpected value 'invalid'"
}
]
}
@@ -0,0 +1,17 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
concurrency: ${{ secrets.foo }}
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-concurrency.yml (Line: 5, Col: 18): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.foo"
}
]
}
+18
View File
@@ -0,0 +1,18 @@
include-source: false # Drop file/line/col from output
---
name: CI
on:
push:
jobs:
"":
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-id-empty.yml (Line: 5, Col: 3): Unexpected value ''"
}
]
}
@@ -0,0 +1,67 @@
include-source: false # Drop file/line/col from output
---
name: CI
on:
push:
jobs:
my.job:
runs-on: ubuntu-latest
steps:
- run: echo hi
my%job:
runs-on: ubuntu-latest
steps:
- run: echo hi
my^job:
runs-on: ubuntu-latest
steps:
- run: echo hi
.myjob:
runs-on: ubuntu-latest
steps:
- run: echo hi
0myjob:
runs-on: ubuntu-latest
steps:
- run: echo hi
" myjob":
runs-on: ubuntu-latest
steps:
- run: echo hi
" ":
runs-on: ubuntu-latest
steps:
- run: echo hi
-myjob:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-id-format.yml (Line: 5, Col: 3): The identifier 'my.job' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
},
{
"Message": ".github/workflows/errors-job-id-format.yml (Line: 9, Col: 3): The identifier 'my%job' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
},
{
"Message": ".github/workflows/errors-job-id-format.yml (Line: 13, Col: 3): The identifier 'my^job' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
},
{
"Message": ".github/workflows/errors-job-id-format.yml (Line: 17, Col: 3): The identifier '.myjob' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
},
{
"Message": ".github/workflows/errors-job-id-format.yml (Line: 21, Col: 3): The identifier '0myjob' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
},
{
"Message": ".github/workflows/errors-job-id-format.yml (Line: 25, Col: 3): The identifier ' myjob' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
},
{
"Message": ".github/workflows/errors-job-id-format.yml (Line: 29, Col: 3): The identifier ' ' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
},
{
"Message": ".github/workflows/errors-job-id-format.yml (Line: 33, Col: 3): The identifier '-myjob' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
}
]
}
@@ -0,0 +1,40 @@
include-source: false # Drop file/line/col from output
---
name: CI
on:
push:
jobs:
# Valid
_:
runs-on: ubuntu-latest
steps:
- run: echo hi
_a:
runs-on: ubuntu-latest
steps:
- run: echo hi
a__:
runs-on: ubuntu-latest
steps:
- run: echo hi
# Invalid
__:
runs-on: ubuntu-latest
steps:
- run: echo hi
__a:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-id-leading-underscores.yml (Line: 20, Col: 3): The identifier '__' is invalid. IDs starting with '__' are reserved."
},
{
"Message": ".github/workflows/errors-job-id-leading-underscores.yml (Line: 24, Col: 3): The identifier '__a' is invalid. IDs starting with '__' are reserved."
}
]
}
@@ -0,0 +1,22 @@
include-source: false # Drop file/line/col from output
---
name: CI
on:
push:
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- run: echo hi
MY-JOB:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-id-unique.yml (Line: 9, Col: 3): 'MY-JOB' is already defined"
}
]
}
@@ -0,0 +1,34 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
one:
runs-on: ubuntu-latest
steps:
- run: echo hello
two:
needs:
- one
- three
runs-on: ubuntu-latest
steps:
- run: echo hello
three:
needs: two
runs-on: ubuntu-latest
steps:
- run: echo hello
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-needs-cycle.yml (Line: 12, Col: 9): Job 'two' depends on job 'three' which creates a cycle in the dependency graph."
},
{
"Message": ".github/workflows/errors-job-needs-cycle.yml (Line: 18, Col: 12): Job 'three' depends on job 'two' which creates a cycle in the dependency graph."
}
]
}
@@ -0,0 +1,24 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
one:
needs: two
runs-on: ubuntu-latest
steps:
- run: echo hello
two:
needs: one
runs-on: ubuntu-latest
steps:
- run: echo hello
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-needs-no-start-node.yml (Line: 4, Col: 3): The workflow must contain at least one job with no dependencies."
}
]
}
@@ -0,0 +1,37 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
one:
needs: two
runs-on: ubuntu-latest
steps:
- run: echo hello
three:
needs:
- four
- five
runs-on: ubuntu-latest
steps:
- run: echo hello
six:
runs-on: ubuntu-latest
steps:
- run: echo hello
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-needs-unknown-job.yml (Line: 5, Col: 12): Job 'one' depends on unknown job 'two'."
},
{
"Message": ".github/workflows/errors-job-needs-unknown-job.yml (Line: 12, Col: 9): Job 'three' depends on unknown job 'four'."
},
{
"Message": ".github/workflows/errors-job-needs-unknown-job.yml (Line: 13, Col: 9): Job 'three' depends on unknown job 'five'."
}
]
}
@@ -0,0 +1,15 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
uses: ./.github/workflows/foo.yml
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-runs-on-and-uses.yml (Line: 5, Col: 5): Unexpected value 'uses'"
}
]
}
@@ -0,0 +1,33 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on:
group: ent/org/my-group
steps:
- run: echo hi
build2:
runs-on:
group: asdf/my-group
steps:
- run: echo hi
build3:
runs-on:
group: ent/
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-runs-on-group-invalid-prefix.yml (Line: 5, Col: 14): Invalid runs-on group name 'ent/org/my-group'. Please use 'organization/' or 'enterprise/' prefix to target a single runner group."
},
{
"Message": ".github/workflows/errors-job-runs-on-group-invalid-prefix.yml (Line: 10, Col: 14): Invalid runs-on group name 'asdf/my-group'. Please use 'organization/' or 'enterprise/' prefix to target a single runner group."
},
{
"Message": ".github/workflows/errors-job-runs-on-group-invalid-prefix.yml (Line: 15, Col: 14): Invalid runs-on group name 'ent/'."
}
]
}
@@ -0,0 +1,15 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build: # missing runs-on
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-job-runs-on-missing.yml (Line: 4, Col: 5): Required property is missing: runs-on"
}
]
}
@@ -0,0 +1,12 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs: {}
---
{
"errors": [
{
"Message": ".github/workflows/errors-jobs-at-least-one.yml (Line: 2, Col: 7): The workflow must contain at least one job with no dependencies."
}
]
}
+11
View File
@@ -0,0 +1,11 @@
include-source: false # Drop file/line/col from output
---
on: push
---
{
"errors": [
{
"Message": ".github/workflows/errors-jobs-missing.yml (Line: 1, Col: 1): Required property is missing: jobs"
}
]
}
@@ -0,0 +1,19 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
bad-strategy-key:
strategy:
bad-key:
os: [10]
runs-on: macos-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-matrix-bad-key.yml (Line: 5, Col: 7): Unexpected value 'bad-key'"
}
]
}
@@ -0,0 +1,20 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
empty-vector:
strategy:
matrix:
os: []
version: [10,12]
runs-on: macos-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-matrix-empty-vector.yml (Line: 6, Col: 13): Matrix vector 'os' does not contain any values"
}
]
}
@@ -0,0 +1,54 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
test_matrix:
strategy:
matrix:
complex:
- key-1:
nested-1:
nested-nested-1:
- key-2:
nested-2:
nested-nested-2:
- key-3:
nested-3:
nested-nested-3:
- key-4:
nested-4:
nested-nested-4:
- key-5:
nested-5:
nested-nested-5:
- key-6:
nested-6:
nested-nested-6:
- key-7:
nested-7:
nested-nested-7:
- key-8:
nested-8:
nested-nested-8:
- key-9:
nested-9:
nested-nested-9:
- key-10:
nested-10:
nested-nested-10:
- key-11:
nested-11:
nested-nested-11:
- key-12:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo Building...
---
{
"errors": [
{
"Message": ".github/workflows/errors-matrix-max-depth.yml: Maximum object depth exceeded"
}
]
}
+21
View File
@@ -0,0 +1,21 @@
include-source: false # Drop file/line/col from output
max-depth: 5
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 14 # Depth = 5, equals max-depth, raises error
- run: echo Building...
---
{
"errors": [
{
"Message": ".github/workflows/errors-max-depth.yml: Maximum object depth exceeded"
}
]
}
@@ -0,0 +1,18 @@
include-source: false # Drop file/line/col from output
max-file-size: 124
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo Building...
---
{
"errors": [
{
"Message": ".github/workflows/errors-max-file-size.yml: The maximum file size of 124 characters has been exceeded"
}
]
}
@@ -0,0 +1,34 @@
include-source: false # Drop file/line/col from output
skip:
- Go
max-job-limit: 8
---
on: push
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
deploy1:
uses: contoso/templates/.github/workflows/deploy.yml@v1
deploy2:
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: echo hi
deploy2:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": "The workflow may not contain more than 8 jobs"
}
]
}
@@ -0,0 +1,19 @@
include-source: false # Drop file/line/col from output
max-result-size: 1141
---
on: push
jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo Deploying 1...
- run: echo Deploying 2...
- run: echo Deploying 3...
---
{
"errors": [
{
"Message": ".github/workflows/errors-max-result-size.yml: Maximum object size exceeded"
}
]
}
@@ -0,0 +1,27 @@
include-source: false # Drop file/line/col from output
---
on:
push:
branches:
- main
workflow_call:
inputs:
app_name:
required: true
type: Datetime
secrets:
shh:
required: true
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-on-workflow_call-input-type-missing.yml (Line: 9, Col: 15): Unexpected value 'Datetime'"
}
]
}
@@ -0,0 +1,28 @@
include-source: false # Drop file/line/col from output
---
on:
push:
branches:
- main
workflow_call:
inputs:
app_name:
required: true
type: string
deprecationMessage: blah blah
secrets:
shh:
required: true
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-on-workflow_call-input-unexpected-property.yml (Line: 10, Col: 9): Unexpected value 'deprecationMessage'"
}
]
}
@@ -0,0 +1,23 @@
include-source: false # Drop file/line/col from output
---
on:
push:
branches:
- main
workflow_call:
outputs:
output1:
description: foo
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-on-workflow_call-output.yml (Line: 8, Col: 9): Required property is missing: value"
}
]
}
@@ -0,0 +1,18 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
parse-bool-error:
runs-on: !!bool test
steps:
- uses: actions/checkout@v2
---
{
"errors": [
{
"Message": ".github/workflows/errors-parse-boolean.yml: The value 'test' on line 4 and column 14 is invalid for the type 'tag:yaml.org,2002:bool'"
}
]
}
+18
View File
@@ -0,0 +1,18 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
parse-float-error:
runs-on: !!float test
steps:
- uses: actions/checkout@v2
---
{
"errors": [
{
"Message": ".github/workflows/errors-parse-float.yml: The value 'test' on line 4 and column 14 is invalid for the type 'tag:yaml.org,2002:float'"
}
]
}
@@ -0,0 +1,18 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
parse-int-error:
runs-on: !!int test
steps:
- uses: actions/checkout@v2
---
{
"errors": [
{
"Message": ".github/workflows/errors-parse-integer.yml: The value 'test' on line 4 and column 14 is invalid for the type 'tag:yaml.org,2002:int'"
}
]
}
@@ -0,0 +1,36 @@
include-source: false # Drop file/line/col from output
---
on:
workflow_call: # missing 'type'
inputs:
username:
description: 'A username passed from the caller workflow'
default: 'john-doe'
jobs:
build:
runs-on: self-hosted
concurrency: # missing 'group'
cancel-in-progress: true
steps:
- run: echo Hi
build2:
runs-on: self-hosted
environment: # missing 'name'
url: https://github.com
steps:
- run: echo Hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-required-property-missing.yml (Line: 5, Col: 9): Required property is missing: type"
},
{
"Message": ".github/workflows/errors-required-property-missing.yml (Line: 11, Col: 7): Required property is missing: group"
},
{
"Message": ".github/workflows/errors-required-property-missing.yml (Line: 17, Col: 7): Required property is missing: name"
}
]
}
@@ -0,0 +1,30 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on:
workflow_call:
inputs:
foo:
required: true
type: string
jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-job-inputs-required.yml (Line: 4, Col: 11): Input foo is required, but not provided while calling."
}
]
}
@@ -0,0 +1,37 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
with:
some-boolean: not-a-boolean
some-number: not-a-number
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on:
workflow_call:
inputs:
some-boolean:
type: boolean
some-number:
type: number
jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-job-inputs-type-mismatch.yml (Line: 6, Col: 21): Unexpected value 'not-a-boolean'"
},
{
"Message": ".github/workflows/errors-reusable-workflow-job-inputs-type-mismatch.yml (Line: 7, Col: 20): Unexpected value 'not-a-number'"
}
]
}
@@ -0,0 +1,27 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
with:
foo: bar
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-job-inputs-undefined.yml (Line: 6, Col: 12): Invalid input, foo is not defined in the referenced workflow."
}
]
}
@@ -0,0 +1,40 @@
include-source: false # Drop file/line/col from output
skip:
- Go
max-nested-reusable-workflows-depth: 2
---
on: push
jobs:
deploy-level-0:
uses: contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
on: workflow_call
jobs:
deploy-level-1:
uses: contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
on: workflow_call
jobs:
deploy-level-2:
uses: contoso/templates/.github/workflows/deploy-level-3.yml@v1
---
contoso/templates/.github/workflows/deploy-level-3.yml@v1
---
on: workflow_call
jobs:
deploy-level-3:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": "Nested reusable workflow depth exceeded 2."
}
]
}
@@ -0,0 +1,38 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
permissions:
actions: write
on: push
jobs:
deploy-level-0:
uses: contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
on: workflow_call
jobs:
deploy-level-1:
permissions:
actions: read
uses: contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
on: workflow_call
jobs:
deploy-level-2:
permissions:
actions: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": "contoso/templates/.github/workflows/deploy-level-1.yml@v1 (Line: 3, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy-level-2.yml@v1'. The nested job 'deploy-level-2' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}
@@ -0,0 +1,38 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
permissions:
actions: write
on: push
jobs:
deploy-level-0:
uses: contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
permissions:
actions: read
on: workflow_call
jobs:
deploy-level-1:
uses: contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
on: workflow_call
jobs:
deploy-level-2:
permissions:
actions: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": "contoso/templates/.github/workflows/deploy-level-1.yml@v1 (Line: 5, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy-level-2.yml@v1'. The nested job 'deploy-level-2' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}
@@ -0,0 +1,38 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
permissions:
actions: write
on: push
jobs:
deploy-level-0:
uses: contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
on: workflow_call
jobs:
deploy-level-1:
permissions:
actions: read
uses: contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
on: workflow_call
permissions:
actions: write
jobs:
deploy-level-2:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": "contoso/templates/.github/workflows/deploy-level-1.yml@v1 (Line: 3, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy-level-2.yml@v1'. The workflow 'contoso/templates/.github/workflows/deploy-level-2.yml@v1' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}
@@ -0,0 +1,38 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
permissions:
actions: write
on: push
jobs:
deploy-level-0:
uses: contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
permissions:
actions: read
on: workflow_call
jobs:
deploy-level-1:
uses: contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
on: workflow_call
permissions:
actions: write
jobs:
deploy-level-2:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": "contoso/templates/.github/workflows/deploy-level-1.yml@v1 (Line: 5, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy-level-2.yml@v1'. The workflow 'contoso/templates/.github/workflows/deploy-level-2.yml@v1' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}
@@ -0,0 +1,29 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on:
workflow_call:
secrets:
shh:
required: true
jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-job-secrets-required.yml (Line: 4, Col: 11): Secret shh is required, but not provided while calling."
}
]
}
@@ -0,0 +1,27 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
secrets:
foo: bar
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-job-secrets-undefined.yml (Line: 6, Col: 12): Invalid secret, foo is not defined in the referenced workflow."
}
]
}
@@ -0,0 +1,41 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo hi
deploy:
needs: build
uses: contoso/templates/.github/workflows/deploy.yml@v1
with:
app_name: my app
secrets: inhrit # typo
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on:
workflow_call:
inputs:
app_name:
required: true
type: string
secrets:
shh:
required: true
jobs:
job1:
runs-on: ubuntu-latest
outputs:
output1: ${{ steps.step1.outputs.test }}
steps:
- run: echo \""::set-output name=test::hello\""
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-job-secrets.yml (Line: 12, Col: 14): Unexpected value 'inhrit'"
}
]
}
@@ -0,0 +1,26 @@
include-source: false # Drop file/line/col from output
max-result-size: 2048
skip:
- Go
---
on: push
jobs:
build-0: { uses: contoso/templates/.github/workflows/deploy.yml@v1 }
build-1: { uses: contoso/templates/.github/workflows/deploy.yml@v1 }
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo Deploying...
---
{
"errors": [
{
"Message": "In .github/workflows/errors-reusable-workflow-max-result-size.yml (Line: 4, Col: 20): Error from called workflow contoso/templates/.github/workflows/deploy.yml@v1: Maximum object size exceeded"
}
]
}
@@ -0,0 +1,28 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
jobs:
deploy:
permissions:
actions: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-job-level-from-caller-default.yml (Line: 3, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy.yml@v1'. The nested job 'deploy' is requesting 'actions: write', but is only allowed 'actions: none'."
}
]
}
@@ -0,0 +1,29 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
jobs:
deploy:
permissions:
actions: read
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
jobs:
deploy:
permissions:
actions: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-job-level-from-caller-job-level.yml (Line: 3, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy.yml@v1'. The nested job 'deploy' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}
@@ -0,0 +1,29 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
permissions:
actions: read
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
jobs:
deploy:
permissions:
actions: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-job-level-from-caller-workflow-level.yml (Line: 5, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy.yml@v1'. The nested job 'deploy' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
actions: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
actions: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-actions-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
checks: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
checks: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-checks-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'checks: write', but is only allowed 'checks: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
contents: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-contents-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'contents: write', but is only allowed 'contents: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
deployments: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
deployments: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-deployments-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'deployments: write', but is only allowed 'deployments: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
discussions: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
discussions: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-discussions-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'discussions: write', but is only allowed 'discussions: read'."
}
]
}
@@ -0,0 +1,43 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
actions: write
checks: write
contents: write
deployments: write
discussions: write
issues: write
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
id-token: none
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-id-token-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'id-token: write', but is only allowed 'id-token: none'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
issues: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-issues-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'issues: write', but is only allowed 'issues: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
packages: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-packages-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'packages: write', but is only allowed 'packages: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
pages: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
pages: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-pages-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'pages: write', but is only allowed 'pages: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
pull-requests: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-pull-requests-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'pull-requests: write', but is only allowed 'pull-requests: read'."
}
]
}
@@ -0,0 +1,30 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
# Note, the workflow names are intentionally short so the error message doesn't get truncated too much
---
on: push
jobs:
deploy:
permissions: {}
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions: read-all
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-read-all-allowed-none.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'actions: read, checks: read, contents: read, deployments: read, discussions: read, issues: read, packages: read, pages: read, pull-requests: read, repository-projects: read, statuses: read, security-events: read, id-token: read', but is only allowed 'actions: none, checks: none, co[...]"
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
repository-projects: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
repository-projects: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-repository-projects-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'repository-projects: write', but is only allowed 'repository-projects: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
security-events: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
security-events: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-security-events-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'security-events: write', but is only allowed 'security-events: read'."
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
permissions:
statuses: read
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions:
statuses: write
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-statuses-write.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'statuses: write', but is only allowed 'statuses: read'."
}
]
}
@@ -0,0 +1,30 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
# Note, the workflow names are intentionally short so the error message doesn't get truncated too much
---
on: push
jobs:
deploy:
permissions: {}
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions: write-all
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-write-all-allowed-none.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'actions: write, checks: write, contents: write, deployments: write, discussions: write, issues: write, packages: write, pages: write, pull-requests: write, repository-projects: write, statuses: write, security-events: write, id-token: write', but is only allowed 'actions: none, ch[...]"
}
]
}
@@ -0,0 +1,30 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
# Note, the workflow names are intentionally short so the error message doesn't get truncated too much
---
on: push
jobs:
deploy:
permissions: read-all
uses: a/b/.github/workflows/c.yml@v1
---
a/b/.github/workflows/c.yml@v1
---
on: workflow_call
jobs:
deploy:
name: Deploy 1
permissions: write-all
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-request-write-all-allowed-read-all.yml (Line: 3, Col: 3): Error calling workflow 'a/b/.github/workflows/c.yml@v1'. The nested job 'Deploy 1' is requesting 'actions: write, checks: write, contents: write, deployments: write, discussions: write, issues: write, packages: write, pages: write, pull-requests: write, repository-projects: write, statuses: write, security-events: write, id-token: write', but is only allowed 'actions: read[...]"
}
]
}
@@ -0,0 +1,30 @@
include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
permissions:
actions: write
contents: write
packages: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-workflow-level-from-caller-default.yml (Line: 3, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy.yml@v1'. The workflow 'contoso/templates/.github/workflows/deploy.yml@v1' is requesting 'actions: write, contents: write, packages: write', but is only allowed 'actions: none, contents: read, packages: read'."
}
]
}
@@ -0,0 +1,29 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
jobs:
deploy:
permissions:
actions: read
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
permissions:
actions: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-workflow-level-from-caller-job-level.yml (Line: 3, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy.yml@v1'. The workflow 'contoso/templates/.github/workflows/deploy.yml@v1' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}
@@ -0,0 +1,29 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
permissions:
actions: read
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
permissions:
actions: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-workflow-level-from-caller-workflow-level.yml (Line: 5, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy.yml@v1'. The workflow 'contoso/templates/.github/workflows/deploy.yml@v1' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}
+64
View File
@@ -0,0 +1,64 @@
include-source: false # Drop file/line/col from output
---
name: CI
on:
push:
jobs:
build:
runs-on: [ self-hosted ]
steps:
# Valid
- run: echo no-id # no id
- id: valid-id
run: echo valid-id
- id: _
run: echo _
- id: _a
run: echo _a
- id: a__
run: echo a__
# Duplicate
- id: my-step
run: echo my-step
- id: my-step
run: echo my-step-duplicate
# Duplicate (case insensitive)
- id: step1
run: echo step1
- id: STEP1
run: echo STEP1
# Invalid
- id: _invalid$stuff
run: echo _invalid$stuff
- id: -invalid-step!
run: echo -invalid-step!
- id: __
run: echo __
- id: __a
run: echo __a
---
{
"errors": [
{
"Message": ".github/workflows/errors-step-id.yml (Line: 22, Col: 13): The identifier 'my-step' may not be used more than once within the same scope."
},
{
"Message": ".github/workflows/errors-step-id.yml (Line: 28, Col: 13): The identifier 'STEP1' may not be used more than once within the same scope."
},
{
"Message": ".github/workflows/errors-step-id.yml (Line: 32, Col: 13): The identifier '_invalid$stuff' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
},
{
"Message": ".github/workflows/errors-step-id.yml (Line: 34, Col: 13): The identifier '-invalid-step!' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters."
},
{
"Message": ".github/workflows/errors-step-id.yml (Line: 36, Col: 13): The identifier '__' is invalid. IDs starting with '__' are reserved."
},
{
"Message": ".github/workflows/errors-step-id.yml (Line: 38, Col: 13): The identifier '__a' is invalid. IDs starting with '__' are reserved."
}
]
}
+19
View File
@@ -0,0 +1,19 @@
include-source: false # Drop file/line/col from output
---
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
if: (steps.publish-pdf.outcome != 'Skipped' || steps.publish-json.outcome != 'Skipped) && success()
run: echo "Hello"
---
{
"errors": [
{
"Message": ".github/workflows/errors-step-if.yml (Line: 8, Col: 15): Unexpected symbol: ''Skipped) && success()'. Located at position 74 within expression: (steps.publish-pdf.outcome != 'Skipped' || steps.publish-json.outcome != 'Skipped) && success()"
}
]
}
@@ -0,0 +1,46 @@
include-source: false # Drop file/line/col from output
skip:
- Go
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
# Max expression length is 21000
- run: |
echo ${{ github.sha }}
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
# 1000 chars: 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
---
{
"errors": [
{
"Message": ".github/workflows/errors-step-run-exceeds-length.yml (Line: 7, Col: 14): Exceeded max expression length 21000"
}
]
}
@@ -0,0 +1,16 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- shell: foo
---
{
"errors": [
{
"Message": ".github/workflows/errors-step-run-missing.yml (Line: 6, Col: 9): Required property is missing: run"
}
]
}
@@ -0,0 +1,17 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- with:
foo: bar
---
{
"errors": [
{
"Message": ".github/workflows/errors-step-uses-missing.yml (Line: 6, Col: 9): Required property is missing: uses"
}
]
}
@@ -0,0 +1,31 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
# Valid
- uses: docker://alpine:3.8
- uses: actions/aws/ec2@main
- uses: ./.github/actions/my-action
# Invalid
- uses: $$docker://alpine:3.8
- uses: ...docker://alpine:3.8
- uses: badrepo@invalid
- uses: docker://
---
{
"errors": [
{
"Message": ".github/workflows/errors-step-uses-syntax.yml (Line: 12, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual '$$docker://alpine:3.8'"
},
{
"Message": ".github/workflows/errors-step-uses-syntax.yml (Line: 13, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual '...docker://alpine:3.8'"
},
{
"Message": ".github/workflows/errors-step-uses-syntax.yml (Line: 14, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'badrepo@invalid'"
}
]
}
@@ -0,0 +1,20 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
build:
if: ${{ contains('a', 'b' }}
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-unclosed-tokens.yml (Line: 4, Col: 9): Unexpected end of expression: ''b''. Located at position 15 within expression: contains('a', 'b'"
}
]
}
@@ -0,0 +1,16 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
not: a-sequence
---
{
"errors": [
{
"Message": ".github/workflows/errors-unexpected-mapping.yml (Line: 6, Col: 7): A mapping was not expected"
}
]
}
@@ -0,0 +1,20 @@
include-source: false # Drop file/line/col from output
---
name:
- no
- sequence
- here
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-unexpected-sequence.yml (Line: 2, Col: 3): A sequence was not expected"
}
]
}
@@ -0,0 +1,17 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
runs-on: duplicate-key
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-value-already-defined.yml (Line: 5, Col: 5): 'runs-on' is already defined"
}
]
}
@@ -0,0 +1,19 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
build:
runs-on: ubuntu-latest
cancel-timeout-minutes: !!int "300"
steps:
- run: echo hi
---
{
"errors": [
{
"Message": ".github/workflows/errors-yaml-invalid-style.yml: The scalar style 'DoubleQuoted' on line 5 and column 29 is not valid with the tag 'tag:yaml.org,2002:int'"
}
]
}
@@ -0,0 +1,20 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.5
with:
not-before: !!timestamp 2022-10-26T00:00:00Z # explicitly set unsupported tag
---
{
"errors": [
{
"Message": ".github/workflows/errors-yaml-tags-explicit-unsupported.yml: Unexpected tag 'tag:yaml.org,2002:timestamp'"
}
]
}
+78
View File
@@ -0,0 +1,78 @@
include-source: false # Drop file/line/col from output
---
on: push
env:
time: < #mapping token
jobs:
build:
if: false || ${{ true && true }} #expression token
runs-on: [macos-latest,linux,self-hosted, <] #sequence token
steps:
- run: echo Hello && World #string token
build2:
if: false
runs-on: ubuntu-latest
steps:
- run: echo 1
---
{
"env": {
"type": 2,
"map": [
{
"Key": "time",
"Value": "<"
}
]
},
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success() && (format('false || {0}', true && true))"
},
"runs-on": {
"type": 1,
"seq": [
"macos-latest",
"linux",
"self-hosted",
"<"
]
},
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": "echo Hello && World"
}
]
},
{
"type": "job",
"id": "build2",
"name": "build2",
"if": {
"type": 3,
"expr": "success() && (false)"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": "echo 1"
}
]
}
]
}
+554
View File
@@ -0,0 +1,554 @@
skip:
- C#
- Go
---
on:
branch_protection_rule:
types:
- created
- edited
- deleted
check_run:
types:
- created
- completed
- requested_action
- rerequested
check_suite:
types:
- completed
create:
delete:
deployment:
deployment_status:
discussion:
types:
- created
- edited
- deleted
- transferred
- pinned
- unpinned
- labeled
- unlabeled
- locked
- unlocked
- category_changed
- answered
- unanswered
discussion_comment:
types:
- created
- edited
- deleted
fork:
gollum:
issue_comment:
types:
- created
- edited
- deleted
issues:
types:
- opened
- edited
- deleted
- transferred
- pinned
- unpinned
- closed
- reopened
- assigned
- unassigned
- labeled
- unlabeled
- locked
- unlocked
- milestoned
- demilestoned
label:
types:
- created
- edited
- deleted
merge_group:
types: checks_requested
milestone:
types:
- created
- closed
- opened
- edited
- deleted
page_build:
project:
types:
- created
- closed
- reopened
- edited
- deleted
project_card:
types:
- created
- moved
- converted
- edited
- deleted
project_column:
types:
- created
- updated
- moved
- deleted
public:
pull_request:
branches:
- master
- 'main'
branches-ignore: [ develop ]
paths: file
paths-ignore: 'file'
types:
- assigned
- unassigned
- labeled
- unlabeled
- opened
- edited
- closed
- reopened
- synchronize
- converted_to_draft
- ready_for_review
- locked
- unlocked
- review_requested
- review_request_removed
- auto_merge_enabled
- auto_merge_disabled
pull_request_comment:
types:
- created
- edited
- deleted
pull_request_review:
types:
- submitted
- edited
- dismissed
pull_request_review_comment:
types:
- created
- edited
- deleted
pull_request_target:
branches:
- master
- 'main'
branches-ignore: [ develop ]
paths: file
paths-ignore: 'file'
types:
- assigned
- unassigned
- labeled
- unlabeled
- opened
- edited
- closed
- reopened
- synchronize
- converted_to_draft
- ready_for_review
- locked
- unlocked
- review_requested
- review_request_removed
- auto_merge_enabled
- auto_merge_disabled
push:
branches:
- master
- 'main'
branches-ignore: [ develop ]
tags:
- v1
- 'v2'
tags-ignore: [ 'v3' ]
paths: file
paths-ignore: 'file'
registry_package:
types:
- published
- updated
release:
types:
- published
- unpublished
- created
- edited
- deleted
- prereleased
- released
schedule:
- cron: "* * * * 5"
- cron: "* * * * 6"
status:
watch:
types: started
workflow_call:
inputs:
foo:
type: string
description: 'Foo'
required: true
default: 'bar'
workflow_run:
workflows: ci
types:
- requested
- completed
- in_progress
branches:
- master
- 'main'
branches-ignore: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"events": {
"branch_protection_rule": {
"types": [
"created",
"edited",
"deleted"
]
},
"check_run": {
"types": [
"created",
"completed",
"requested_action",
"rerequested"
]
},
"check_suite": {
"types": [
"completed"
]
},
"create": {},
"delete": {},
"deployment": {},
"deployment_status": {},
"discussion": {
"types": [
"created",
"edited",
"deleted",
"transferred",
"pinned",
"unpinned",
"labeled",
"unlabeled",
"locked",
"unlocked",
"category_changed",
"answered",
"unanswered"
]
},
"discussion_comment": {
"types": [
"created",
"edited",
"deleted"
]
},
"fork": {},
"gollum": {},
"issue_comment": {
"types": [
"created",
"edited",
"deleted"
]
},
"issues": {
"types": [
"opened",
"edited",
"deleted",
"transferred",
"pinned",
"unpinned",
"closed",
"reopened",
"assigned",
"unassigned",
"labeled",
"unlabeled",
"locked",
"unlocked",
"milestoned",
"demilestoned"
]
},
"label": {
"types": [
"created",
"edited",
"deleted"
]
},
"merge_group": {
"types": [
"checks_requested"
]
},
"milestone": {
"types": [
"created",
"closed",
"opened",
"edited",
"deleted"
]
},
"page_build": {},
"project": {
"types": [
"created",
"closed",
"reopened",
"edited",
"deleted"
]
},
"project_card": {
"types": [
"created",
"moved",
"converted",
"edited",
"deleted"
]
},
"project_column": {
"types": [
"created",
"updated",
"moved",
"deleted"
]
},
"public": {},
"pull_request": {
"branches": [
"master",
"main"
],
"branches-ignore": [
"develop"
],
"paths": [
"file"
],
"paths-ignore": [
"file"
],
"types": [
"assigned",
"unassigned",
"labeled",
"unlabeled",
"opened",
"edited",
"closed",
"reopened",
"synchronize",
"converted_to_draft",
"ready_for_review",
"locked",
"unlocked",
"review_requested",
"review_request_removed",
"auto_merge_enabled",
"auto_merge_disabled"
]
},
"pull_request_comment": {
"types": [
"created",
"edited",
"deleted"
]
},
"pull_request_review": {
"types": [
"submitted",
"edited",
"dismissed"
]
},
"pull_request_review_comment": {
"types": [
"created",
"edited",
"deleted"
]
},
"pull_request_target": {
"branches": [
"master",
"main"
],
"branches-ignore": [
"develop"
],
"paths": [
"file"
],
"paths-ignore": [
"file"
],
"types": [
"assigned",
"unassigned",
"labeled",
"unlabeled",
"opened",
"edited",
"closed",
"reopened",
"synchronize",
"converted_to_draft",
"ready_for_review",
"locked",
"unlocked",
"review_requested",
"review_request_removed",
"auto_merge_enabled",
"auto_merge_disabled"
]
},
"push": {
"branches": [
"master",
"main"
],
"branches-ignore": [
"develop"
],
"tags": [
"v1",
"v2"
],
"tags-ignore": [
"v3"
],
"paths": [
"file"
],
"paths-ignore": [
"file"
]
},
"registry_package": {
"types": [
"published",
"updated"
]
},
"release": {
"types": [
"published",
"unpublished",
"created",
"edited",
"deleted",
"prereleased",
"released"
]
},
"schedule": [
{
"cron": "* * * * 5"
},
{
"cron": "* * * * 6"
}
],
"status": {},
"watch": {
"types": [
"started"
]
},
"workflow_call": {
"inputs": {
"foo": {
"type": "string",
"description": "Foo",
"required": true,
"default": "bar"
}
}
},
"workflow_run": {
"branches": [
"master",
"main"
],
"branches-ignore": [
"develop"
],
"types": [
"requested",
"completed",
"in_progress"
],
"workflows": [
"ci"
]
}
},
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_checkout",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/checkout@v3"
},
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"continue-on-error": true,
"run": "echo hi"
}
]
}
]
}
@@ -0,0 +1,53 @@
skip:
- C#
- Go
---
on:
repository_dispatch:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"events": {
"repository_dispatch": {},
"workflow_dispatch": {}
},
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_checkout",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/checkout@v3"
},
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"continue-on-error": true,
"run": "echo hi"
}
]
}
]
}
+96
View File
@@ -0,0 +1,96 @@
skip:
- C#
- Go
---
on:
repository_dispatch:
types: [custom-type]
workflow_dispatch:
inputs:
name:
type: string
default: monalisa
description: Name to greet
send_emojis:
type: boolean
default: true
greeting:
type: choice
default: hello
options:
- hello
- hallo
env:
type: environment
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"events": {
"repository_dispatch": {
"types": [
"custom-type"
]
},
"workflow_dispatch": {
"inputs": {
"name": {
"type": "string",
"description": "Name to greet",
"default": "monalisa"
},
"send_emojis": {
"type": "boolean",
"default": true
},
"greeting": {
"type": "choice",
"options": [
"hello",
"hallo"
],
"default": "hello"
},
"env": {
"type": "environment"
}
}
}
},
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_checkout",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/checkout@v3"
},
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"continue-on-error": true,
"run": "echo hi"
}
]
}
]
}
+51
View File
@@ -0,0 +1,51 @@
include-source: false # Drop file/line/col from output
skip:
- Go
- C#
---
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"events": {
"push": {},
"pull_request": {}
},
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_checkout",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/checkout@v3"
},
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"continue-on-error": true,
"run": "echo hi"
}
]
}
]
}
@@ -0,0 +1,25 @@
include-source: false # Drop file/line/col from output
skip:
- Go
- C#
---
on:
push:
inputs:
name:
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"errors": [
{
"Message": ".github/workflows/events-single-invalid-config.yml (Line: 3, Col: 5): Unexpected value 'inputs'"
}
]
}
@@ -0,0 +1,29 @@
include-source: false # Drop file/line/col from output
skip:
- Go
- C#
---
on:
workflow_dispatch:
unknown_value: test
inputs:
name:
another_unknown_value: 123
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"errors": [
{
"Message": ".github/workflows/events-single-invalid.yml (Line: 3, Col: 5): Unexpected value 'unknown_value'"
},
{
"Message": ".github/workflows/events-single-invalid.yml (Line: 6, Col: 9): Unexpected value 'another_unknown_value'"
}
]
}
@@ -0,0 +1,56 @@
include-source: false # Drop file/line/col from output
skip:
- Go
- C#
---
on:
pull_request:
types: synchronize
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"events": {
"pull_request": {
"types": [
"synchronize"
]
}
},
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_checkout",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/checkout@v3"
},
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"continue-on-error": true,
"run": "echo hi"
}
]
}
]
}
+50
View File
@@ -0,0 +1,50 @@
include-source: false # Drop file/line/col from output
skip:
- Go
- C#
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo hi
continue-on-error: true
---
{
"events": {
"push": {}
},
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_checkout",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/checkout@v3"
},
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"continue-on-error": true,
"run": "echo hi"
}
]
}
]
}
+47
View File
@@ -0,0 +1,47 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Switch to using Python 3.10 by default
uses: actions/setup-python@v4
with:
python-version: >-
3.10
---
{
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__actions_setup-python",
"name": "Switch to using Python 3.10 by default",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "actions/setup-python@v4",
"with": {
"type": 2,
"map": [
{
"Key": "python-version",
"Value": "3.10"
}
]
}
}
]
}
]
}
+42
View File
@@ -0,0 +1,42 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: docker://chinthakagodawita/autoupdate-action@sha256:a3e234f9fce69dd9b3a205acfd55bf9d5c94f0f7cf119f0267a5ab54220e8f56 # v1
- run: echo hi
---
{
"jobs": [
{
"type": "job",
"id": "build",
"name": "build",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__chinthakagodawita_autoupdate-action_sha256_a3e234f9fce69dd9b3a205acfd55bf9d5c94f0f7cf119f0267a5ab5",
"if": {
"type": 3,
"expr": "success()"
},
"uses": "docker://chinthakagodawita/autoupdate-action@sha256:a3e234f9fce69dd9b3a205acfd55bf9d5c94f0f7cf119f0267a5ab54220e8f56"
},
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": "echo hi"
}
]
}
]
}
+94
View File
@@ -0,0 +1,94 @@
include-source: false # Drop file/line/col from output
skip:
- TypeScript
---
on: push
jobs:
generate:
runs-on: ubuntu-latest
outputs:
matrix_map: ${{ steps.set-matrix.outputs.matrix }}
steps:
- run: echo hi
run:
runs-on: ubuntu-latest
needs: generate
env:
${{ insert }}: ${{ fromJson(needs.generate.outputs.matrix_map) }}
steps:
- run: echo hi
---
{
"jobs": [
{
"type": "job",
"id": "generate",
"name": "generate",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"outputs": {
"type": 2,
"map": [
{
"Key": "matrix_map",
"Value": {
"type": 3,
"expr": "steps.set-matrix.outputs.matrix"
}
}
]
},
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": "echo hi"
}
]
},
{
"type": "job",
"id": "run",
"name": "run",
"needs": [
"generate"
],
"if": {
"type": 3,
"expr": "success()"
},
"env": {
"type": 2,
"map": [
{
"Key": {
"type": 4,
"directive": "insert"
},
"Value": {
"type": 3,
"expr": "fromJson(needs.generate.outputs.matrix_map)"
}
}
]
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": "echo hi"
}
]
}
]
}
+166
View File
@@ -0,0 +1,166 @@
# Remove this test when feature flag Actions.FixFileTableOrderOnPartialRerun is rolled out
#
# This test exploits the fact that the test-referenced-workflows-dictionary is sorted.
# When IsPartialRerun=true, the file table is re-written using the keys from the
# test-referenced-workflows-dictionary.
include-source: true # Preserve file/line/col from output
skip:
- Go
is-partial-rerun: true
---
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo hi
deploy-1:
needs: build
uses: .contoso/templates/.github/workflows/deploy.yml@v1
---
.contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo hi from reusable workflow
---
{
"jobs": [
{
"type": "job",
"id": {
"type": 0,
"file": 1,
"line": 3,
"col": 3,
"lit": "build"
},
"name": {
"type": 0,
"file": 1,
"line": 3,
"col": 3,
"lit": "build"
},
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": {
"type": 0,
"file": 1,
"line": 4,
"col": 14,
"lit": "ubuntu-latest"
},
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": {
"type": 0,
"file": 1,
"line": 6,
"col": 14,
"lit": "echo hi"
}
}
]
},
{
"type": "reusableWorkflowJob",
"id": {
"type": 0,
"file": 1,
"line": 7,
"col": 3,
"lit": "deploy-1"
},
"name": {
"type": 0,
"file": 1,
"line": 7,
"col": 3,
"lit": "deploy-1"
},
"needs": [
{
"type": 0,
"file": 1,
"line": 8,
"col": 12,
"lit": "build"
}
],
"if": {
"type": 3,
"expr": "success()"
},
"ref": {
"type": 0,
"file": 1,
"line": 9,
"col": 11,
"lit": ".contoso/templates/.github/workflows/deploy.yml@v1"
},
"jobs": [
{
"type": "job",
"id": {
"type": 0,
"file": 2,
"line": 3,
"col": 3,
"lit": "job1"
},
"name": {
"type": 0,
"file": 2,
"line": 3,
"col": 3,
"lit": "job1"
},
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": {
"type": 0,
"file": 2,
"line": 4,
"col": 14,
"lit": "ubuntu-latest"
},
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": {
"type": 0,
"file": 2,
"line": 6,
"col": 14,
"lit": "echo hi from reusable workflow"
}
}
]
}
]
}
],
"file-table": [
".contoso/templates/.github/workflows/deploy.yml@v1",
".github/workflows/is-partial-rerun.yml"
]
}
+59
View File
@@ -0,0 +1,59 @@
include-source: false # Drop file/line/col from output
---
on: push
jobs:
job1:
runs-on: windows-2019
steps:
- run: echo 1
job2:
runs-on: windows-2019
cancel-timeout-minutes: 5
steps:
- run: echo 2
---
{
"jobs": [
{
"type": "job",
"id": "job1",
"name": "job1",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "windows-2019",
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": "echo 1"
}
]
},
{
"type": "job",
"id": "job2",
"name": "job2",
"if": {
"type": 3,
"expr": "success()"
},
"cancel-timeout-minutes": 5,
"runs-on": "windows-2019",
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": "echo 2"
}
]
}
]
}

Some files were not shown because too many files have changed in this diff Show More