Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump github.com/rhysd/actionlint from 1.6.20 to 1.6.21 #1380

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 10, 2022

Bumps github.com/rhysd/actionlint from 1.6.20 to 1.6.21.

Release notes

Sourced from github.com/rhysd/actionlint's releases.

v1.6.21

  • Check contexts availability. Some contexts limit where they can be used. For example, jobs.<job_id>.env workflow key does not allow accessing env context, but jobs.<job_id>.steps.env allows. See the official document for the complete list of contexts availability. (#180)
    ...
    env:
    TOPLEVEL: ...
    jobs:
    test:
    runs-on: ubuntu-latest
    env:
    # ERROR: 'env' context is not available here
    JOB_LEVEL: ${{ env.TOPLEVEL }}
    steps:
    - env:
    # OK: 'env' context is available here
    STEP_LEVEL: ${{ env.TOPLEVEL }}
    ...
    actionlint reports the context is not available and what contexts are available as follows:

    test.yaml:11:22: context "env" is not allowed here. available contexts are "github", "inputs", "matrix", "needs", "secrets", "strategy". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression]
       |
    11 |       JOB_LEVEL: ${{ env.TOPLEVEL }}
       |                      ^~~~~~~~~~~~
    
  • Check special functions availability. Some functions limit where they can be used. For example, status functions like success() or failure() are only available in conditions of if:. See the official document for the complete list of special functions availability. (#214)
    ...
    steps:
    ERROR: 'success()' function is not available here
    
    run: echo 'Success? ${{ success() }}'
    OK: 'success()' function is available here
    if: success()
    actionlint reports success() is not available and where the function is available as follows:
test.yaml:8:33: calling function "success" is not allowed here. "success" is only available in "jobs.<job_id>.if", "jobs.<job_id>.steps.if". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression]
  |
8 |       - run: echo 'Success? ${{ success() }}'
  |                                 ^~~~~~~~~
  • Fix inputs context is not available in run-name: section. (#223)
  • Allow dynamic shell configuration like shell: ${{ env.SHELL }}.
  • Fix no error is reported when on: does not exist at toplevel. (#232)
  • Fix an error position is not correct when the error happens at root node of workflow AST.
  • Fix an incorrect empty event is parsed when on: section is empty.
  • Fix the error message when parsing an unexpected key on toplevel. (#231, thanks @​norwd)
  • ... (truncated)

    Changelog

    Sourced from github.com/rhysd/actionlint's changelog.

    v1.6.21 - 09 Oct 2022

    • Check contexts availability. Some contexts limit where they can be used. For example, jobs.<job_id>.env workflow key does not allow accessing env context, but jobs.<job_id>.steps.env allows. See the official document for the complete list of contexts availability. (#180)
      ...
      env:
      TOPLEVEL: ...
      jobs:
      test:
      runs-on: ubuntu-latest
      env:
      # ERROR: 'env' context is not available here
      JOB_LEVEL: ${{ env.TOPLEVEL }}
      steps:
      - env:
      # OK: 'env' context is available here
      STEP_LEVEL: ${{ env.TOPLEVEL }}
      ...
      actionlint reports the context is not available and what contexts are available as follows:

      test.yaml:11:22: context "env" is not allowed here. available contexts are "github", "inputs", "matrix", "needs", "secrets", "strategy". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression]
         |
      11 |       JOB_LEVEL: ${{ env.TOPLEVEL }}
         |                      ^~~~~~~~~~~~
      
    • Check special functions availability. Some functions limit where they can be used. For example, status functions like success() or failure() are only available in conditions of if:. See the official document for the complete list of special functions availability. (#214)
      ...
      steps:
      ERROR: 'success()' function is not available here
      
      run: echo 'Success? ${{ success() }}'
      OK: 'success()' function is available here
      if: success()
      actionlint reports success() is not available and where the function is available as follows:
    test.yaml:8:33: calling function "success" is not allowed here. "success" is only available in "jobs.<job_id>.if", "jobs.<job_id>.steps.if". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression]
      |
    8 |       - run: echo 'Success? ${{ success() }}'
      |                                 ^~~~~~~~~
    
  • Fix inputs context is not available in run-name: section. (#223)
  • Allow dynamic shell configuration like shell: ${{ env.SHELL }}.
  • Fix no error is reported when on: does not exist at toplevel. (#232)
  • Fix an error position is not correct when the error happens at root node of workflow AST.
  • Fix an incorrect empty event is parsed when on: section is empty.
  • ... (truncated)

    Commits
    • bb1cfc3 bump up version to v1.6.21
    • 79e852a update playground dependencies
    • 28d27a9 improve example and description of contexts and special function availability...
    • 29fe73a add test to check context availability of run-name
    • ce0f432 fix build broken by the previous merge
    • 011c6a1 Merge branch 'ctx-spfn-availability' (fixes #180, fixes #214)
    • acac1d1 add example test for contexts and special functions availablity checks
    • 852639b describe contexts and special function availability checks in document
    • 9fe29a4 Merge pull request #233 from rhysd/ci/3208740685
    • 11b4bc3 update generated files by go generate on CI
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

    Bumps [github.com/rhysd/actionlint](https://github.com/rhysd/actionlint) from 1.6.20 to 1.6.21.
    - [Release notes](https://github.com/rhysd/actionlint/releases)
    - [Changelog](https://github.com/rhysd/actionlint/blob/main/CHANGELOG.md)
    - [Commits](rhysd/actionlint@v1.6.20...v1.6.21)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/rhysd/actionlint
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    @dependabot dependabot bot requested a review from a team as a code owner October 10, 2022 02:08
    @dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Oct 10, 2022
    @codecov
    Copy link

    codecov bot commented Oct 10, 2022

    Codecov Report

    Merging #1380 (cbe8ffe) into master (4f8da0a) will increase coverage by 6.59%.
    The diff coverage is 75.40%.

    @@            Coverage Diff             @@
    ##           master    #1380      +/-   ##
    ==========================================
    + Coverage   57.50%   64.10%   +6.59%     
    ==========================================
      Files          32       41       +9     
      Lines        4594     6383    +1789     
    ==========================================
    + Hits         2642     4092    +1450     
    - Misses       1729     1996     +267     
    - Partials      223      295      +72     
    Impacted Files Coverage Δ
    pkg/model/action.go 0.00% <0.00%> (ø)
    pkg/model/step_result.go 0.00% <ø> (ø)
    pkg/container/docker_run.go 13.06% <12.32%> (+7.52%) ⬆️
    pkg/model/planner.go 48.82% <25.00%> (-1.60%) ⬇️
    pkg/model/workflow.go 50.97% <32.14%> (+0.05%) ⬆️
    pkg/container/docker_pull.go 33.33% <33.33%> (ø)
    pkg/container/file_collector.go 45.87% <45.87%> (ø)
    pkg/common/git/git.go 50.00% <47.91%> (ø)
    pkg/container/docker_auth.go 47.61% <50.00%> (+2.61%) ⬆️
    pkg/exprparser/interpreter.go 73.37% <53.48%> (-0.02%) ⬇️
    ... and 31 more

    📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

    @github-actions
    Copy link
    Contributor

    🦙 MegaLinter status: ✅ SUCCESS

    Descriptor Linter Files Fixed Errors Elapsed time
    ✅ EDITORCONFIG editorconfig-checker 2 0 0.02s
    ✅ REPOSITORY gitleaks yes no 2.34s
    ✅ REPOSITORY git_diff yes no 0.0s
    ✅ REPOSITORY secretlint yes no 1.01s

    See errors details in artifact MegaLinter reports on CI Job page
    Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

    MegaLinter is graciously provided by OX Security

    @mergify mergify bot merged commit c4be1cf into master Oct 10, 2022
    @mergify mergify bot deleted the dependabot/go_modules/github.com/rhysd/actionlint-1.6.21 branch October 10, 2022 02:28
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    dependencies Pull requests that update a dependency file go Pull requests that update Go code size/XS
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    None yet

    0 participants