-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add static analysis for Github Action files #771
Comments
@mrdavidburns The Lines 4 to 23 in 87d3e9e
Then install drainpipe
It is necessary to create a
You should create a file named name: learn-github-actions
run-name: ${{ github.actor }} is learning GitHub Actions
on: [push]
jobs:
check-bats-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install -g bats
- run: bats -v To test the task, run the command: ddev task github:actions:lint In the absence of errors, the output will be devoid of content. However, should modifications be made to the file, for instance: name: learn-github-actions
run-name: ${{ github.actor }} is learning GitHub Actions
on: [push]
jobs:
check-bats-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install -g bats
- run The output would be: Fatal error validating .github/workflows/example-workflow.yml |
Add validator and security checks for Github Actions
The text was updated successfully, but these errors were encountered: