Skip to content

Commit

Permalink
Fixed GHA coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed May 3, 2024
1 parent 61a916a commit 6e1def0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/close-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Remove environment after a PR is closed
run: |
cat $GITHUB_EVENT_PATH | curl \
cat "$GITHUB_EVENT_PATH" | curl \
-X POST \
--header "Content-Type: application/json" \
--header "X-GitHub-Delivery: ${RUNNER_TRACKING_ID:7}" \
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/scaffold-release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
release-docs:
environment:
name: github-pages
url: ${{ steps.pages.outputs.page_url }}

runs-on: ubuntu-latest

Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/scaffold-test-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:

- name: Generate test SSH key pair used for deployment tests
run: |
mkdir -p $HOME/.ssh
ssh-keygen -t rsa -b 4096 -m PEM -N '' -f $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa
echo "$(ssh-agent -a ${HOME}/ssh-agent.sock)" > ssh-agent-output
mkdir -p "$HOME/.ssh"
ssh-keygen -t rsa -b 4096 -m PEM -N '' -f "$HOME/.ssh/id_rsa"
chmod 600 "$HOME/.ssh/id_rsa"
ssh-agent -a "${HOME}/ssh-agent.sock" > ssh-agent-output
export SSH_AUTH_SOCK=$(grep SSH_AUTH_SOCK ssh-agent-output | cut -d';' -f1 | cut -d= -f2)
echo "SSH_AUTH_SOCK=${SSH_AUTH_SOCK}" >> $GITHUB_ENV
echo "SSH_AUTH_SOCK=${SSH_AUTH_SOCK}" >> "$GITHUB_ENV"
- name: Install dependencies
run: npm ci
Expand Down Expand Up @@ -162,12 +162,12 @@ jobs:

- name: Generate test SSH key pair used for deployment tests
run: |
mkdir -p $HOME/.ssh
ssh-keygen -t rsa -b 4096 -m PEM -N '' -f $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa
echo "$(ssh-agent -a ${HOME}/ssh-agent.sock)" > ssh-agent-output
export SSH_AUTH_SOCK=$(grep SSH_AUTH_SOCK ssh-agent-output | cut -d';' -f1 | cut -d= -f2)
echo "SSH_AUTH_SOCK=${SSH_AUTH_SOCK}" >> $GITHUB_ENV
mkdir -p "$HOME/.ssh"
ssh-keygen -t rsa -b 4096 -m PEM -N '' -f "$HOME/.ssh/id_rsa"
chmod 600 "$HOME/.ssh/id_rsa"
ssh-agent -a "${HOME}/ssh-agent.sock" > ssh-agent-output
export SSH_AUTH_SOCK="$(grep SSH_AUTH_SOCK ssh-agent-output | cut -d';' -f1 | cut -d= -f2)"
echo "SSH_AUTH_SOCK=${SSH_AUTH_SOCK}" >> "$GITHUB_ENV"
- name: Install dependencies
run: npm ci
Expand Down Expand Up @@ -202,5 +202,5 @@ jobs:
continue-on-error: ${{ vars.DREVOPS_CI_YAMLLINT_IGNORE_FAILURE == '1' }}

- name: Check coding standards with actionlint
run: docker run --rm -v "${GITHUB_WORKSPACE:-.}":/app --workdir /app rhysd/actionlint:1.6.27
run: docker run --rm -v "${GITHUB_WORKSPACE:-.}":/app --workdir /app rhysd/actionlint:1.6.27 -ignore 'SC2002:' -ignore 'SC2155:'
continue-on-error: ${{ vars.DREVOPS_CI_ACTIONLINT_IGNORE_FAILURE == '1' }}

1 comment on commit 6e1def0

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.